
Tech
Nice custom Svelte animations
Svelte ships fade, fly, slide, scale, blur, … in svelte/transition so you can just import those ones and use them out of the box. But you also can create your own actions and transitions, and use them via use: directive, or with in:/out: , - very convenient across elements. Let me share several actions that i use the most often in our design system.
What Svelte gives you natively is the ergonomics : a one-line use:/in:/out: directive on any element, with teardown hand...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to