Topic: How to collapse sidenav when clicking a SmoothScroll button
Devon Grenfell asked 7 years ago
I have the hidden sidenav and fixed navbar working. I am building a single-page site with the buttons in the sidenav simply triggering SmoothScroll and scrolling to that specific point on the page.My issue is that when I click one of the links in my sidenav it does not collapse the sidenav like it does when loading a separate page. How could I trigger the transforming(sliding) function when clicking on these links in the sidebar. \'ve been digging around in the bootstrap css files but it's getting quite confusing.
My issue is that when I click one of the links in my sidenav it does not collapse the sidenav like it does when loading a separate page. How could I trigger the transforming(sliding) function when clicking on these links in the sidebar? I've been digging around in the bootstrap css files but it's getting quite confusing.
Marta Szymanska staff pro premium answered 7 years ago
Devon Grenfell answered 7 years ago
Devon Grenfell commented 7 years ago
Hi @Marta, So above is my header section. Under is the Transform function along with the classes necessary for making the sidebar slide out. I'm assuming I should make use of similar classes or target that Transform function in my sidebar navigation links (under ) in order to cause the sidebar to minimise when I click them?Marta Szymanska staff pro premium answered 7 years ago
Devon Grenfell commented 7 years ago
MDB Pro 4.4.1Marta Szymanska staff pro premium commented 7 years ago
Hi, send me to m.szymanska@mdbootstrap.com your order ID, please. Best, MartaDevon Grenfell commented 7 years ago
I don't believe I have an order ID. I have not bought the Pro package. The version it gave me in the README.txt file of the free download was "MDB Pro 4.4.1".Marta Szymanska staff pro premium answered 7 years ago
Hi,
OK, fine. But side-nav is a pro components so if you have a free version it won't work.
Best,
Marta
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No