Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added conditions to the animation effect phase calculation to account…
… for animation current phase.
  • Loading branch information
Jordan Taylor committed Jan 4, 2021
commit 01e9af7e8550505eb0c0b507f0855d61ced62739
12 changes: 10 additions & 2 deletions web-animations-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2401,19 +2401,27 @@ definitions:

An <a>animation effect</a> is in the <dfn>before phase</dfn> if the
animation effect's <a>local time</a> is not <a>unresolved</a> and
<em>either</em> of the following conditions are met:
<em>any</em> of the following conditions are met:

1. the <a>local time</a> is less than the <a>before-active boundary time</a>,
<em>or</em>
1. the effect is <a>associated with an animation</a> <em>and</em> the
associated <a>animation</a>'s <a>current phase</a> is
[=timeline before phase|before=] <em>and</em> the <a>local time</a> is equal
the <a>before-active boundary time</a>, <em>or</em>
1. the <a>animation direction</a> is &lsquo;backwards&rsquo; and the <a>local
time</a> is equal to the <a>before-active boundary time</a>.

An <a>animation effect</a> is in the <dfn>after phase</dfn> if the
animation effect's <a>local time</a> is not <a>unresolved</a> and
<em>either</em> of the following conditions are met:
<em>any</em> of the following conditions are met:

1. the <a>local time</a> is greater than the <a>active-after boundary
time</a>, <em>or</em>
1. the effect is <a>associated with an animation</a> <em>and</em> the
associated <a>animation</a>'s <a>current phase</a> is
[=timeline after phase|after=] <em>and</em> the <a>local time</a> is equal
to the <a>active-after boundary time</a>, <em>or</em>
1. the <a>animation direction</a> is &lsquo;forwards&rsquo; and the <a>local
time</a> is equal to the <a>active-after boundary time</a>.

Expand Down