Attached Transitions/Animations #17686
jrmoynihan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Transitions and animations are great out-of-the-box tools from Svelte, but as Attachments improved greatly on the flexibility of Actions, I think we need a similar update to these directives.
We could implement some attachment to run a WAAPI animation on a child component/node and spread it down through props with
createAttachmentKey(), but one feature is missing: the ability to synchronize the cleanup function with the lifecycle of the component.This is a poor, hacky attempt show what I mean:
Does anyone have a better way of doing this? Or do you think it is the purview of the framework to provide an elegant way to synchronize these primitives?
Beta Was this translation helpful? Give feedback.
All reactions