Skip to content

[web-animations-2] s/animation-trigger-type/animation-trigger-behavior/ #12223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
20 changes: 10 additions & 10 deletions css-animations-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -723,14 +723,14 @@ Declaring Animation Triggers</h2>
The 'animation-trigger' properties
are [=reset-only sub-properties=] of the 'animation' [=shorthand=].

## The 'animation-trigger-type' property ## {#animation-trigger-type}
## The 'animation-trigger-behavior' property ## {#animation-trigger-behavior}

The 'animation-trigger-type' property specifies the [=animation trigger type=]
The 'animation-trigger-behavior' property specifies the [=animation trigger behavior=]
of the [=animation trigger=].

<pre class='propdef'>
Name: animation-trigger-type
Value: <<single-animation-trigger-type>>#
Name: animation-trigger-behavior
Value: <<single-animation-trigger-behavior>>#
Initial: once
Applies to: all elements
Inherited: no
Expand All @@ -740,12 +740,12 @@ Animation type: not animatable
Canonical order: per grammar
</pre>

<span class=prod><dfn>&lt;single-animation-trigger-type></dfn> = once | repeat | alternate | state</span>
<span class=prod><dfn>&lt;single-animation-trigger-behavior></dfn> = once | repeat | alternate | state</span>

The values of 'animation-trigger-type' have the following meaning
The values of 'animation-trigger-behavior' have the following meaning
for an [=animation trigger=] that enters its [=animation trigger/active interval|active interval=]:

<dl dfn-type=value dfn-for=animation-trigger-type>
<dl dfn-type=value dfn-for=animation-trigger-behavior>
<dt><dfn>once</dfn>
<dd>
The animation is triggered and played once and only once.
Expand All @@ -767,7 +767,7 @@ for an [=animation trigger=] that enters its [=animation trigger/active interval
When the trigger’s [=animation trigger/active interval=] is re-entered the animation is resumed.
</dl>

The behavior of each value is defined in [[web-animations-2#trigger-types]].
The behavior of each value is defined in [[web-animations-2#trigger-behaviors]].

## The 'animation-trigger-timeline' property ## {#animation-trigger-timeline}

Expand Down Expand Up @@ -964,7 +964,7 @@ The values of 'animation-trigger-exit-range-start' have the following meaning:
## The 'animation-trigger' property ## {#animation-trigger}

The 'animation-trigger' property is a [=shorthand property|shorthand=]
that sets 'animation-trigger-type', 'animation-trigger-timeline',
that sets 'animation-trigger-behavior', 'animation-trigger-timeline',
'animation-trigger-range-start', 'animation-trigger-range-end',
'animation-trigger-exit-range-start', and 'animation-trigger-exit-range-end'
together in a single declaration,
Expand All @@ -983,7 +983,7 @@ Animation Type: not animatable
</pre>

<pre class=prod>
<dfn>&lt;single-animation-trigger></dfn> = <<single-animation-trigger-type>> || [ none | auto | [ [ <<dashed-ident>> | <<scroll()>> | <<view()>> ] [ normal | <<length-percentage>> | <<timeline-range-name>> <<length-percentage>>? ]{0,4} ] ]
<dfn>&lt;single-animation-trigger></dfn> = <<single-animation-trigger-behavior>> || [ none | auto | [ [ <<dashed-ident>> | <<scroll()>> | <<view()>> ] [ normal | <<length-percentage>> | <<timeline-range-name>> <<length-percentage>>? ]{0,4} ] ]
</pre>

# Animation Events # {#events}
Expand Down
Loading