DEV Community 👩‍💻👨‍💻

Discussion on: Using Bootstrap 5 with Vue.js

Collapse
perrycodes profile image
PerryCodes • Edited on

I couldn't tell you why... but the animation is jittery in all the "data-bs-" examples, but smooth for the "componetized" versions. Can anyone shed light on the reason? Are you also experiencing this?

Collapse
namstel profile image
Namstel • Edited on

I'm also experiencing this and I found out that it's because of the py-2 class on the #collapseTarget element. Bootstrap 5 doesn't seem to handle that very well...

A better way to add the padding, is by adding a child element to the #collapseTarget element and giving that element the padding.

Collapse
themesguide profile image
ThemesGuide

Cool, thanks for the tip!

Some comments have been hidden by the post's author - find out more