mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
LibWeb: Implement AnimationEffect's phase helpers
This commit is contained in:
parent
6a9c03482f
commit
02c4973681
2 changed files with 80 additions and 0 deletions
|
@ -101,6 +101,19 @@ public:
|
|||
double before_active_boundary_time() const;
|
||||
double after_active_boundary_time() const;
|
||||
|
||||
bool is_in_the_before_phase() const;
|
||||
bool is_in_the_after_phase() const;
|
||||
bool is_in_the_active_phase() const;
|
||||
bool is_in_the_idle_phase() const;
|
||||
|
||||
enum class Phase {
|
||||
Before,
|
||||
Active,
|
||||
After,
|
||||
Idle,
|
||||
};
|
||||
Phase phase() const;
|
||||
|
||||
protected:
|
||||
AnimationEffect(JS::Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue