Collapsible.Content - Animation issue when adding padding #583
-
Hello, I'm playing around with animation feature on the Collapsible primitive and am experiencing some janky-ness when adding padding to I'm hoping it's not a bug, but rather a CSS implementation issue on my end, but here's a Codesandbox repro. Thoughts on this? Any feedback would be much appreciative! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @binhxn, I'm not sure it's a bug per-se as your animations only animate I think you have a couple ways you could get around it:
Let me know if that helps! |
Beta Was this translation helpful? Give feedback.
Hey @binhxn, I'm not sure it's a bug per-se as your animations only animate
height
andopacity
, so padding remains as defined until the content unmounts (hence the jump).I think you have a couple ways you could get around it:
Collapsible.Content
which would have the padding on itLet me know if that helps!