diff --git a/web-animations-2/Overview.bs b/web-animations-2/Overview.bs index 10d2b174d1c..8157f6ff782 100644 --- a/web-animations-2/Overview.bs +++ b/web-animations-2/Overview.bs @@ -2379,40 +2379,40 @@ Issue: Should there be any effect of triggers on scroll-driven animations? The behavior an [=animation trigger=] applies to its associated [=animation=]’s playback is defined by its animation trigger type, and depending on its [=animation trigger state|state=] can apply one of two -distinct behavior types: ''primary'' or ''inverse''. +distinct behavior types: [=animation trigger state/primary=] or [=animation trigger state/inverse=]. Given an internal |did trigger| flag, the values of [=animation trigger type=] can be one of the following: -
-
once +
+
''animation-trigger-type/once''
- The ''primary'' behavior is [=play an animation|triggering=] the associated animation. + The [=animation trigger state/primary=] behavior is [=play an animation|triggering=] the associated animation. -
repeat +
''animation-trigger-type/repeat''
- The ''primary'' behavior is [=play an animation|triggering=] the associated animation. - The ''inverse'' behavior is resetting the associated [=animation effect=] back to + The [=animation trigger state/primary=] behavior is [=play an animation|triggering=] the associated animation. + The [=animation trigger state/inverse=] behavior is resetting the associated [=animation effect=] back to its [=animation effect/before phase=] and its associated animation’s [=animation/start time=] to zero. -
alternate +
''animation-trigger-type/alternate''
: if the |did trigger| flag is false, :: - The ''primary'' behavior is [=play an animation|triggering=] the associated animation. + The [=animation trigger state/primary=] behavior is [=play an animation|triggering=] the associated animation. : Otherwise, :: - The ''primary'' behavior is [=reverse an animation|reversing=] the associated animation. + The [=animation trigger state/primary=] behavior is [=reverse an animation|reversing=] the associated animation.
- The ''inverse'' behavior is [=reverse an animation|reversing=] the associated animation. + The [=animation trigger state/inverse=] behavior is [=reverse an animation|reversing=] the associated animation. -
state +
''animation-trigger-type/state''
- The ''primary'' behavior is [=play an animation|triggering or resuming=] the associated animation. - The ''inverse'' behavior is [=pause an animation|pausing=] the associated animation. + The [=animation trigger state/primary=] behavior is [=play an animation|triggering or resuming=] the associated animation. + The [=animation trigger state/inverse=] behavior is [=pause an animation|pausing=] the associated animation.
Issue: Need to bike-shed the name for type "state" type. @@ -2427,7 +2427,7 @@ has an internal state which controls the applied behavior type. This state has discrete values which can be one of the following: -
+
idle
The [=animation effect=] associated |animation| remains in @@ -2435,11 +2435,11 @@ which can be one of the following:
primary
- When switched to this value the ''primary'' behavior type defined by |type| is applied to |animation|. + When switched to this value the [=animation trigger state/primary=] behavior type defined by |type| is applied to |animation|.
inverse
- When switched to this value the ''inverse'' behavior type defined by |type| is applied to |animation|. + When switched to this value the [=animation trigger state/inverse=] behavior type defined by |type| is applied to |animation|.
@@ -2449,7 +2449,7 @@ Issue: Do we need a formal resolution on the spec of the idle state? Each [=animation trigger=] defines an active interval and only one such interval. This interval is the segment of the timeline’s progress -during which the trigger’s [=animation trigger state|state=] is set to ''primary''. +during which the trigger’s [=animation trigger state|state=] is set to [=animation trigger state/primary=]. ### Animation Trigger Ranges ### {#trigger-ranges} @@ -2464,7 +2464,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the [=animation trigger/active interval|active interval=] is defined as follows:
- : If |state| is ''animation trigger state/primary'', + : If |state| is [=animation trigger state/primary=], :: Then |interval| is set to [=exit range=]. @@ -2515,7 +2515,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the 1. Let |did trigger| be a boolean flag that is initially false. 1. Let |state| be the current [=animation trigger state|state=] - of |trigger| that is initially ''animation trigger state/idle''. + of |trigger| that is initially [=animation trigger state/idle=]. 1. Set |state| as follows:
@@ -2527,7 +2527,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the ::
- : If |type| is ''animation trigger type/once'' and |did trigger| flag is true, + : If |type| is 'animation-trigger-type/once'' and |did trigger| flag is true, :: Then abort this procedure. @@ -2537,7 +2537,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the
: If |trigger| is inside its [=animation trigger/active interval|active interval=], :: - 1. Set |state| to ''animation trigger state/primary''. + 1. Set |state| to [=animation trigger state/primary=]. 1. Set |did trigger| to true. : Otherwise, @@ -2546,7 +2546,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the
: If |did trigger| flag is true, :: - Set |state| to ''animation trigger state/inverse''. + Set |state| to [=animation trigger state/inverse=].
@@ -3713,7 +3713,7 @@ dictionary AnimationTriggerOptions { : type :: The type of trigger to create. - If not specified, the trigger is of type ''animation trigger type/once''. + If not specified, the trigger is of type ''animation-trigger-type/once''. : rangeStart :: @@ -3748,19 +3748,19 @@ enum AnimationTriggerType { "once", "repeat", "alternate", "state" }; : once :: - Type ''animation trigger type/once''. + Type ''animation-trigger-type/once''. : repeat :: - Type ''animation trigger type/repeat''. + Type ''animation-trigger-type/repeat''. : alternate :: - Type ''animation trigger type/alternate''. + Type ''animation-trigger-type/alternate''. : state :: - Type ''animation trigger type/state''. + Type ''animation-trigger-type/state''.