mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
LibWeb: Implement AnimationEffect::animation_direction()
This commit is contained in:
parent
2358f64d00
commit
d6fb1c24f6
2 changed files with 18 additions and 0 deletions
|
@ -49,6 +49,11 @@ struct ComputedEffectTiming : public EffectTiming {
|
|||
Optional<double> current_iteration;
|
||||
};
|
||||
|
||||
enum class AnimationDirection {
|
||||
Forwards,
|
||||
Backwards,
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#the-animationeffect-interface
|
||||
class AnimationEffect : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(AnimationEffect, Bindings::PlatformObject);
|
||||
|
@ -87,6 +92,8 @@ public:
|
|||
JS::GCPtr<Animation> associated_animation() const { return m_associated_animation; }
|
||||
void set_associated_animation(JS::GCPtr<Animation> value) { m_associated_animation = value; }
|
||||
|
||||
AnimationDirection animation_direction() const;
|
||||
|
||||
protected:
|
||||
AnimationEffect(JS::Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue