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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to create Framer carousel with framer-motion lib on React. This one is final result - https://slideshows.framer.wiki/
And there is my code - https://codesandbox.io/s/bug-carousel-framer-motion-65gpcw?file=/src/App.tsx
I'm trying to use useTransform and useSpring are MotionValues to reach that effect.
And using this offset value to animate transform: translateX
Translation works when currentStep is increasing, but on reset when limit has been reached my animation looks not continues like in final result.
I reset values like this
But on reset, animation is not smooth when you proceed clicking fast on the button next. It seems stuck or laggy.
So my question is, how to fix this transition to get same result like in final result? Or maybe there are other ways to get that with framer-motion?
Beta Was this translation helpful? Give feedback.
All reactions