Svelte 5 Wrapper Support
Is your feature request related to a problem? Please describe.
Now that vanilla JS APIs are available, it would be great to have native support for Svelte 5.
Describe the solution you'd like
An official Svelte 5 wrapper that integrates smoothly with the Runes API.
Describe alternatives you've considered
Using vanilla Motion.dev in Svelte projects, but it lacks reactivity and feels less integrated.
Additional context
Svelte’s reactive model could pair well with Motion.dev, enhancing the developer experience.
I just created a repo to experiment with the possibility of wrapping motion apis in svelte https://github.com/epavanello/motion-svelte
Since youre asking for Svelte support, might as well ask for
- Vue
- Solid
- Angular
- Preact
- Lit
- Yada yada
Nope @mattgperry, please let the community create wrappers themselves so you can focus on the React and Vanilla APIs <3
GLHF! This is gonna be a mess to maintain tbf.
I just completed a first minimal build with ssr and runes support. I will push the changes to the repo and the npm package soon
Here the first demo and the repo
https://motion-svelte.vercel.app/ https://github.com/epavanello/motion-svelte
@epavanello great work! Will use it on my end, and see if I can improve the component some what. You may consider creating a community package for the time being!
Thank you so much for the kind words and support, @TGlide! 🙏 I really appreciate it.
I’ve just published the package, and it’s now installable via:
npm i motion-svelte
Feel free to give it a try and let me know if you have any suggestions or improvements. Looking forward to your feedback! 🚀