FormidableLabs / nuka-carousel

Small, fast, and accessibility-first React carousel library with an easily customizable UI and behavior to fit your brand and site.
https://commerce.nearform.com/open-source/nuka-carousel
Other
2.99k stars 594 forks source link

Prop for animation speed #1061

Open ssolders opened 1 month ago

ssolders commented 1 month ago

Is there an existing issue for this?

Code of Conduct

Feature Request

Hi, thank you for a great component!
Recently upgraded from v6 -> 8. Noticed that animation speed when changing a slide has been reduced
and figured I just need to set a new prop for that but couldn't find one.

Could we please get a prop that can change the animation speed?
Something like:

slideDuration: {number} in milliseconds

Br
fstoe commented 2 weeks ago

Hi, i just checked the documentation and found that you could set the speed prop, which might fix the described issue.

ssolders commented 2 weeks ago

On version < 8 yes, but was not able to find an alternative for 8.

We ended up having to rollback to v7 for other reasons, mainly related to mobile ux.