Skip to content

[css-animation-worklet-1] Update examples for AnimationWorklet #1174

Open

Description

@Maya-Fey

This is actually two issues:

  1. The publicly available examples are in a broken state with or without the chromium implementation enabled. Cloning locally and replacing a dead rawgit url to an old WAAPI polyfill fixes some examples, others have more problems. The houdini examples repo is archived, so I could not push a fix.
  2. Many of the motivating examples (importantly 2* out of 3 in the draft spec) can be implemented using scroll driven animations, which have shipped in chromium and safari (firefox support should come as a part of INTEROP 2026). This leaves only the "spring" example showing unique functionality of AnimationWorklet.

(2) Is the primary motivation for my question. I was discussing with @kevers-google last week about the state of animation worklet in chromium and neither of us were sure if the feature had a future even now scroll driven animations have shipped, or if the remaining asks could be implemented with extensions to animation-timing-function to give "physics" such as flings / springs / resistance to animations. This would depend on the diversity and complexity of the desired behaviors. The animation worklet spec also goes beyond just "physics," suggesting that generalized input could be animated "natively"/off-main (according to the this note in the draft), which provides a potential group of behaviors not easily addressed by potential incremental extensions to the animations properties and API. However, this case is not defined and there are no public examples to my knowledge.

I'm interested to hear from others what kind of input-driven effects, or generally any complex stateful animation timing that has current usage (implemented by js/framework) or even just developer asks not realized for lack of this feature.

*To implement the velocity-dependent behavior added for the twitter example, you need to use a custom properties and transitions as in this demo, which one could argue is a hack/workaround.

Activity

  1. deleted a comment from on Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions