Topic: Top-Nav-Collapse missing in MDB5
cloudsdale asked 4 years ago
In MDB4 there is a script in mdb.min.js which adds the class .top-nav-collapse to the navbar on scroll like this:
https://mdbootstrap.com/snippets/jquery/mdbootstrap/102480#html-tab-view
This isn't working on MDB5, I have searched the new mdb.min.js file, there is no reference to .top-nav-collapse
Is this feature still available?
Resources (screenshots, code snippets etc.)
Michał Duszak staff answered 4 years ago
This feature is still available on .navbar-scroll
class.
https://mdbootstrap.com/docs/standard/navigation/headers/#section-animated-navbar
https://mdbootstrap.com/snippets/standard/mdbootstrap/2946064
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.5.1
- Device: mac
- Browser: chrome
- OS: 11.2.1
- Provided sample code: No
- Provided link: Yes