Answer the question
In order to leave comments, you need to log in
Is there an option to make the bootstrap menu (nav-bar) collapse on small resolutions without jquery at all, but only with styles?
Or in a Vue project (method) or just a custom JS solution. I don't want to drag jquery into the project.
Answer the question
In order to leave comments, you need to log in
All in all, a very simple solution.
It's just that you can add the "show" class to the menu with the "collapse" class, remove it with some kind of event and that's it.
And further animation if desired.
Maybe someone will come in handy:
https://jsfiddle.net/_jack/ktf7agop/23/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question