Re: [css-houdini-drafts] [css-animationworklet] Mechanism to pause/play an animation from inside worklet (#808)

@majido What's the distinction between `css-animationworklet-1` and `2` labels? IMO this feature is MVP in making this a usable API.

From my current hacking around, even animations that are told to run for `x` milliseconds run indefinitely. This kinda makes sense, as passing `duration` to a spring simulation animation is redundant, and we want that kind of animation to run for as long as it needs to (but only as long as it needs to). Without an animation being able to end itself we'll just end up spawning more workers as animations are initialised without culling old ones.

IMO the swipe-to-dismiss example demonstrates a great API to have available.

-- 
GitHub Notification of comment by InventingWithMonster
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/808#issuecomment-575207399 using your GitHub account

Received on Thursday, 16 January 2020 15:35:01 UTC