Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How does Bootstrap transition the height back and forth? - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
15mo ago
共産主義のト二イ
How does Bootstrap transition the height back and forth?
Bootstrap simply adds the
.collapsing class
, and do some cleanups after every transition and it somehow works
.
Here is a Bootstrap navbar demo
. The viewport must be below 1400px for the toggle to appear
.
https://codepen.io/noobcoder137/pen/KKbpEzx?editors=1100
pay attention to the classes in div
.navbar
-collapse
.
here is my demo
:
https://codepen.io/noobcoder137/pen/XJreXqx?editors=0011
I can make the transition work when opening with the help of force reflow
, but the transition doesn
't work when closing
.
I know i can transition height with grid
-row and so
. I am just curious about the bootstrap approach
.
CodePen
TonyNguyen
Bootstrap test
.
.
.
CodePen
TonyNguyen
transition height bootstrap demo
.
.
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How create transition for height?
KP-C
Kevin Powell - Community / front-end
3y ago
Problem with transition height
KP-C
Kevin Powell - Community / front-end
2y ago
How do you transition a height based on the height of its children?
KP-C
Kevin Powell - Community / front-end
17mo ago
How to make transition dependent on block height?
KP-C
Kevin Powell - Community / front-end
4y ago