Skip to content

[animation-triggers-1] Update AnimationTrigger specification#14044

Open
DavMila wants to merge 3 commits into
w3c:mainfrom
DavMila:timeline-trigger
Open

[animation-triggers-1] Update AnimationTrigger specification#14044
DavMila wants to merge 3 commits into
w3c:mainfrom
DavMila:timeline-trigger

Conversation

@DavMila

@DavMila DavMila commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This Updates the details of the AnimationTrigger interface and algorithms and removed TimelineTrigger-specific details which will be updated separately.

DavMila added 3 commits June 10, 2026 15:57
This adds missing </dfn> and </div> tags.
This moves the details of AnimationTrigger to the animation-triggers-1
spec.

This is mostly a copy-paste of the content from web-animations-2, with
a few adjustments:

- Drops the Animation frame loop update portion
- Drops the Animation mixin interface update portions
- Drops the KeyframeAnimationOptions 'trigger' addition
(these were structured as ammendments to web-animations-1 but are no
longer relevant anyway.)
- Adjusts the level of some headings so bikeshed is happy.
This Updates the details of the AnimationTrigger interface and
algorithms and removed TimelineTrigger-specific details.

1. an <dfn lt="animation trigger active" export>active</dfn> flag, which is initially false,

1. a <dfn lt="animation trigger invokes deactivation" export>invokes deactivation</dfn> flag,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @flackr:

The idea with the invokes deactivation flag is that EventTriggers will, when initialized, set this flag to true only if configured to have deactivation events (and leave false otherwise). TimelineTriggers always set this flag to true as they inherently have a deactivation "event".

@DavMila DavMila requested review from flackr and tabatkins June 15, 2026 14:38
## Invoking Activation & Deactivation ## {#animation-trigger-activation-deactivation}

## Animation Trigger Behavior ## {#trigger-behaviors}
When asked to <dfn lt="invoke activation">invoke activation</dfn> given a [=trigger=] <var>trigger</var>,

@DavMila DavMila Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @tabatkins: I realize we'd rather not have algorithms in spec but I figured these algorithms are short and not overly complicated... so perhaps they make are still a good way to spec the attributes/behavior common to different trigger types.

@ydaniv

ydaniv commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

@DavMila in my local changes I'm changing Animation Trigger into simply Trigger.
My intent is to a generic spec for Triggers, and then apply that to usage with animations.
Should I push what I have now as a separate PR so we can compare/discuss how to converge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants