Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow spring animation is cut off after a while #1207

Open
rijk opened this issue Jul 3, 2021 · 1 comment
Open

Slow spring animation is cut off after a while #1207

rijk opened this issue Jul 3, 2021 · 1 comment
Labels
bug Something isn't working layout projection

Comments

@rijk
Copy link

rijk commented Jul 3, 2021

CodeSandbox reproduction of the bug
https://codesandbox.io/s/framer-motion-border-radius-layout-issue-forked-s4ymf?file=/src/Modal.tsx

Steps to reproduce
I am not 100% sure, but this does not seem like a smooth transition to me. Of course it could be because the config values are just too extreme, but it could also be a bug. This is the transition config:

const transition: Transition = {
  type: "spring",
  stiffness: 4,
  damping: 35,
  mass: 0.5
};
  1. Click one of the blue squares
  2. Midway during the animation, it suddenly accelerates to snap to the end

Expected behavior

The transition should keep an even pace until the end.

Video or screenshots

Screen.Recording.2021-07-03.at.18.40.12.mov
Screen.Recording.2021-07-03.at.18.40.04.mov
@rijk rijk added the bug Something isn't working label Jul 3, 2021
@mattgperry mattgperry mentioned this issue Jul 29, 2021
15 tasks
@rijk
Copy link
Author

rijk commented Aug 30, 2021

Still not working on 5.0.0-rc.1:

Screen.Recording.2021-10-23.at.18.17.16.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working layout projection
Projects
None yet
Development

No branches or pull requests

2 participants