If you animate things on the web in a custom way (not Web Animations or CSS animations over a fixed interval), now is the right time to be planning your move off the main thread in 2020 with Animation Worklets and Scroll Timeline:https://developers.google.com/web/updates/2018/10/animation-worklet …
-
Show this thread
-
Replying to @slightlylate
What if my custom animation system already runs off the main thread (think WebGL in a worker)? Will I have access to Animation Worklets from there? Aside: are these primitives suitable for animation use cases that aren't necessarily acting on DOM nodes?
1 reply 0 retweets 2 likes -
Replying to @0xcda7a
Sub-workers are (or will be?) available. No generic way to hook up AW, tho. Specific to moving CSS positioned stuff via compositor thread.
1 reply 0 retweets 1 like -
Replying to @slightlylate
Thanks, that makes sense. I wish I could make use of all this good stuff that the platform has (including declarative CSS) when working in WebGL land
if I could use CSS animations to perform custom prop interpolations that can be observed somewhere that I have a GL context...1 reply 0 retweets 1 like -
Replying to @0xcda7a @slightlylate
...then I wouldn't need to do anything special to enable support for primitives like AW for my users.
1 reply 0 retweets 1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.