You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec says animation options should be serialisable. The live demo only works because the polyfill doesn't adhere to specs. Trying to pass new DocumentTimeline() to an Animation Worklet throws the error DOMException: Failed to construct 'WorkletAnimation': DocumentTimeline object could not be cloned..
Is this something that the API should support? If not, how could the Spring Sticky possibly be implemented with the API as specced?
As an aside the technique used within the Spring Sticky where the animator can detach from the main timeline would solve issues around animations (like a spring) not being able to stop themselves.
The text was updated successfully, but these errors were encountered:
In the Spring Sticky demo, the Animation Worklet is being passed
new DocumentTimeline()
as an option.The spec says animation options should be serialisable. The live demo only works because the polyfill doesn't adhere to specs. Trying to pass
new DocumentTimeline()
to an Animation Worklet throws the errorDOMException: Failed to construct 'WorkletAnimation': DocumentTimeline object could not be cloned.
.Is this something that the API should support? If not, how could the Spring Sticky possibly be implemented with the API as specced?
As an aside the technique used within the Spring Sticky where the animator can detach from the main timeline would solve issues around animations (like a spring) not being able to stop themselves.
The text was updated successfully, but these errors were encountered: