Is there a reason you cannot use type: inertia
on animate()?
#1620
-
The docs suggest that you can use the animate property on a motion element along with a transition of My usecase is a sidescroller where I implemented side-dragging with snapping at the end the inertia transition easily with the beautiful So is there any reason we can't manually cast an inertia animation if velocity and distance are present? Any workarounds? In any case, thanks for the amazing work! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As suggested by matt perry on discord, it's only the types at https://github.com/framer/motion/blob/main/packages/framer-motion/src/animation/animate.ts#L28 that dont reflect the possibility to use type inertia. Be aware that high values of velocity need to be set, low values like 0.xxx that eg. @use-gesture returns don't really change anything visually since the diff is too small. |
Beta Was this translation helpful? Give feedback.
As suggested by matt perry on discord, it's only the types at https://github.com/framer/motion/blob/main/packages/framer-motion/src/animation/animate.ts#L28 that dont reflect the possibility to use type inertia. Be aware that high values of velocity need to be set, low values like 0.xxx that eg. @use-gesture returns don't really change anything visually since the diff is too small.