Re: [css-houdini-drafts] [css-animationworklet] Allow sending data to animators in worklet from main thread (#869)

Thinking about this a bit more I believe we should limit this type of API to `StatefulAnimator`. (This may make the `postMessage` case more appealing)

First it is not clear to me why a stateless animator needs to receive "options" given that its output should only be dependent on its `animate()` input currentTime. Therefore for StatelessAnimator if options has changed on main thread, the animation should be restarted (cancel/play) without any visual glitch

More over it is not clear how this can be implemented properly for stateless animators where `this` may be different between calling `optionsChanged` and `animate`.

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

Received on Wednesday, 27 March 2019 16:24:30 UTC