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:
parent
7f303729f3
commit
1915e603c9
2 changed files with 135 additions and 0 deletions
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue