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
[BUG] Sharp transition during height animation #1462
Comments
The reason why this happens is because of the padding on the animated element. Try eliminating the padding by adding a nested element (an inner container) and put the padding on that inner container. Then, animate the parent container - without the padding on the animated element, there shouldn't be that jumpy behavior. |
@merlindru Probably it would be best if you would provide a reproducible example with your specific use-case, e.g. in CodeSandbox. |
In my case I use "br" The Line Break element for the space |
Experienced something similar, the height of my container animated inconsistently regardless of padding. The issue was fixed by installing Reproduction:
|
Describe the bug
I need to animate the height from 0 to 'auto', the animation scene is calculated incorrectly, and when 'auto' appears, there is a jump
IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/s/eager-silence-6cpkd0?file=/src/App.js
Steps to reproduce
Steps to reproduce the behavior:
The problem is only when opening ...
Expected behavior
I need a smooth, jump-free animation with lots of components inside
The text was updated successfully, but these errors were encountered: