1
Hello! I want to put an "easing" effect to make more "smooth" the transition from the side menu that collects/expands on my site because when I click on the button to collect it only collects in thousandths of a second, with no effect.
Expanded:
Collected:
I made an example of how it is in this Website.
JS:
$("#sidebarToggle, #sidebarToggleTop").on('click', function(e) {
$("body").toggleClass("sidebar-toggled");
$(".sidebar").toggleClass("toggled"); }
CSS:
body.sidebar-toggled footer.sticky-footer {width: 100%;}
Thank you, Hugocsl, thank you! Helped a lot ;) Just complementing if someone wants to use, add in the <ul> a Style, so: <ul class="navbar-Nav bg-gradient-Primary sidebar sidebar-dark accordion" id="accordionSidebar" style="Transition: 300ms all">
– Roger Windberg
@Rogerwindberg without problems my dear, how nice that solved there, [s]
– hugocsl