vueuse / motion

🤹 Vue Composables putting your components in motion
https://motion.vueuse.org
MIT License
2.24k stars 79 forks source link

Feature Request: Support for Directives to Handle Layout Shifting #226

Open arindampradhan opened 1 week ago

arindampradhan commented 1 week ago

Hi there,

I'm wondering if it would be possible to incorporate support for directives to handle layout shifting within the @vueuse/motion library. This feature would be highly beneficial for developers who need to manage complex animations and layout changes in Vue 3 applications.

References:

Hero Motion - This library provides a similar functionality and could serve as inspiration for how layout shifting can be handled. Framer Motion - This reference demonstrates an effective approach to managing layout animations, which could be adapted to fit the Vue ecosystem.

Thank you for considering this feature request! Your work on @vueuse/motion has been incredibly valuable, and this addition would make it even more versatile.


I’ve created a parallel thread in the hero-motion repository regarding the potential addition of layout shifts to @vueuse/motion. If this feature could be incorporated, it would be immensely beneficial.

You can find the thread here: link.

arindampradhan commented 1 week ago

@Tahul can you kindly look into this request. The developer of hero-motion has agreed to contribute to this repo.