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
Hey I’m trying to use the v-hero directive from hero-motion to create smooth layout transitions when items in a list are removed. However, the items immediately jump to their new positions instead of transitioning smoothly. Is there a way to make it work?
I have created a demo of this on stackblitz -> here
The transition animation doesn't work because hero-motion only captures the current element information when the element is created or deleted, but deleting an element from a list does not trigger this behavior for other elements.
Currently, I'm updating the entire DOM manually using a variable in this demo, but this is not a scalable solution.
Maybe expose a method for manual position updates or introduce a global attribute to manage interactions with other elements is a good way. I need to think this further.
Hey I’m trying to use the v-hero directive from hero-motion to create smooth layout transitions when items in a list are removed. However, the items immediately jump to their new positions instead of transitioning smoothly. Is there a way to make it work?
The text was updated successfully, but these errors were encountered: