@@ -717,13 +717,15 @@ While CSS animations are, by default,
717717automatically run as soon as the appropriate 'animation' values have been set on an element,
718718the 'animation-trigger' property allows the animation's start to be delayed
719719until an appropriate trigger occurs,
720- and even paused, restarted, or reset by triggers.
720+ and even paused, restarted, or reset by triggers
721+ (making it a <dfn export>triggered animation</dfn> ).
722+
721723This is a simplified and streamlined version
722724of what can be achieved with the Web Animations API in Javascript,
723725allowing simple, common interaction patterns
724726to be created and managed purely in CSS.
725727
726- Currently, two types of triggers are defined:
728+ Currently, two types of <dfn> triggers</dfn> are defined:
727729
728730* [=timeline triggers=] , managed by the 'timeline-trigger' properties,
729731 which allow animations to be triggered by entering or leaving certain timeline ranges.
@@ -735,21 +737,71 @@ Currently, two types of triggers are defined:
735737 which allow animations to be triggered by certain user-interaction events,
736738 such as clicking an element or pressing certain keys.
737739
738- <h3 id="">
740+ <h3 id="animation-trigger-prop ">
739741Attaching A Trigger: the 'animation-trigger' property</h3>
740742
741743<pre class=propdef>
742744Name : animation-trigger
743- Value : none | ...
745+ Value : [ none | [ <<dashed-ident>> <<animation-action>>+ ]+ ]#
744746Initial : none
745747Applies to : all elements
746748Inherited : no
747749Percentages : N/A
748- Computed value : ...
750+ Computed value : as specified
749751Animation type : not animatable
750752Canonical order : per grammar
751753</pre>
752754
755+ The 'animation-trigger' property is another member
756+ of the 'animation-name' [=coordinating list property group=] :
757+ each comma-separated item specifies
758+ whether the matching animation on the element
759+ is triggered or not,
760+ and if it is,
761+ what trigger it responds to
762+ and what actions it takes in response.
763+
764+ 'animation-trigger' is a [=reset-only subproperty=] of the 'animation' shorthand.
765+ Its values are:
766+
767+ <dl dfn-type=value dfn-for=animation-trigger>
768+ : <dfn>none</dfn>
769+ ::
770+ The corresponding animation is not triggered.
771+
772+ : <dfn>[ <<dashed-ident>> <<animation-action>>+ ]+</dfn>
773+ ::
774+ The corresponding animation is a [=triggered animation=] ,
775+ responding to the triggers named by each <<dashed-ident>> ,
776+ and responding by taking the action named by the corresponding <<animation-action>> .
777+ (See [[#trigger-scope]] for how <<dashed-ident>> s are resolved to [=triggers=] .)
778+
779+ How many <<animation-action>> s a trigger accepts,
780+ and what exactly activates them,
781+ is determined by the type of the trigger.
782+ <span class=note> ([=Event triggers=] only take a single <<animation-trigger>> ,
783+ while [=timeline triggers=] can take one or two.)</span>
784+ Specifying the wrong number of actions
785+ (too many or too few)
786+ is valid syntactically,
787+ but causes the trigger to have no effect.
788+
789+ If multiple triggers occur simultaneously,
790+ they take effect in the order specified.
791+
792+ If the same <<dashed-ident>> is specified multiple times,
793+ all but the last have no effect.
794+ </dl>
795+
796+ The possible <dfn><<animation-action>></dfn> values are:
797+
798+ <table dfn-type=value dfn-for="<animation-action> ">
799+ </table>
800+
801+
802+
803+
804+
753805
754806 Animation Triggers are defined using the 'animation-trigger-*' properties.
755807 These list-valued properties,
0 commit comments