1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

LibWeb: Implement AnimationEffect progress helper functions

This excludes transformed_progress (which is the progress value used to
interpolate CSS values) as it requires a timing function
This commit is contained in:
Matthew Olsson 2023-11-08 05:36:27 -07:00 committed by Andreas Kling
parent 7f303729f3
commit 1915e603c9
2 changed files with 135 additions and 0 deletions

View file

@ -116,6 +116,12 @@ public:
};
Phase phase() const;
Optional<double> overall_progress() const;
Optional<double> directed_progress() const;
AnimationDirection current_direction() const;
Optional<double> simple_iteration_progress() const;
Optional<double> current_iteration() const;
protected:
AnimationEffect(JS::Realm&);