mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
LibWeb: Implement Animation::set_effect()
This commit is contained in:
parent
68e916490b
commit
2358f64d00
2 changed files with 38 additions and 2 deletions
|
@ -84,6 +84,9 @@ public:
|
|||
String const& easing_function() const { return m_easing_function; }
|
||||
void set_easing_function(String easing_function) { m_easing_function = move(easing_function); }
|
||||
|
||||
JS::GCPtr<Animation> associated_animation() const { return m_associated_animation; }
|
||||
void set_associated_animation(JS::GCPtr<Animation> value) { m_associated_animation = value; }
|
||||
|
||||
protected:
|
||||
AnimationEffect(JS::Realm&);
|
||||
|
||||
|
@ -112,6 +115,9 @@ protected:
|
|||
|
||||
// https://www.w3.org/TR/css-easing-1/#easing-function
|
||||
String m_easing_function { "linear"_string };
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#animation-associated-effect
|
||||
JS::GCPtr<Animation> m_associated_animation {};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue