[css-houdini-drafts] [css-animationworklet] proposal for sequence AnimationTimeline (#949)

laurentperez has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-animationworklet] proposal for sequence AnimationTimeline ==
Hi

Per spec https://www.w3.org/TR/css-animation-worklet-1/#workletanimation AnimationEffect can be a sequence, but AnimationTimeline cannot

Playing with runtime GroupEffect feature and having read the very interesting proposals of https://github.com/yi-gu/group_effect/blob/master/README.md I tried multiple timelines and indeed Canary threw a 'ScrollTimeline cannot be cloned' Exception

I had an usecase where I grouped the Effects (since a sequence is allowed), but I wanted them to be on distinct ScrollTimelines (to use different ranges and offsets)

@majido Twitter demo at view-source:https://majido.github.io/houdini-samples/animation-worklet/twitter-hidey-bar/ polyfilled the worklet to enable multiple timelines

I believe allowing a sequence of multiple timelines (a 1:1 relation to the sequenced Effects, fallback to default timeline if sequence length is unequal) could be a great benefit if natively supported. This would allow for a basic free Choregraphy support (think of the timelines as a Ballet where dancers have their own rythm), until Yi proposals ship for more concrete types.

Is it intended to be in a future part of the spec ?

ty


Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/949 using your GitHub account

Received on Wednesday, 18 September 2019 11:15:32 UTC