vueuse / motion

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

Disable bounce (spring) on default presets? #213

Open butaminas opened 4 months ago

butaminas commented 4 months ago

Hi,

Thank you for creating and maintaining this library!

I'm using this library on vue 3 and noticed that if I use default presets in any way, (e.g. v-motion-slide-visible-bottom or <Motion preset="slideVisibleBottom">) it will automatically add spring effect (bouncing at the end of the animation).

However, once I add a custom duration value (e.g. :duration="300"), the spring effect disappears.

Any way to globally disable the spring effect on default presets?

Thank you.

Matoseb commented 3 months ago

+1

tomsdob commented 1 month ago

Would also like the ability to disable the spring effect on default presets.

CKylinMC commented 5 days ago

I got the same problem, but worse: duration property not working (whatever I set it still seems to be 0.3s), but it truly disabled the spring effect.