How to add a simple fade in animation for the Bootstrap navbar collapse when it opens on small screens.
HTML | CSS | Bootstrap
Source Code:
@media screen and (max-width: 992px) {
.navbar-collapse {
opacity: 0;
}
.navbar-collapse.show {
opacity: 1;
transition: all 1s;
}
}
Bootstrap navbar collapse animation #1:
https://youtube.com/shorts/6-BQESgC2Kc?feature=share
Other Coding Yaar shorts:
https://www.youtube.com/@codingyaar/shorts
Bootstrap 5 Navbars Playlist:
https://www.youtube.com/watch?v=NcGehKh3CpA&list=PLEGWy2sQ80YteTylA0vinRlvF-n-LuIHg
Bootstrap 5 Carousels Playlist:
https://www.youtube.com/playlist?list=PLEGWy2sQ80YvomOWLuUvsILbu7EmQ1V5R
#bootstrap #bootstrap5 #navbar #html #css #webdesign #shorts
Coding Yaar's Discord server: https://discord.gg/raxEDEWkCk