J
J
jkristo ‣2020-02-15 13:48:14
Bootstrap
jkristo ‣, 2020-02-15 13:48:14

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

2 answer(s)
A
Alex, 2020-02-15
@jkristo

https://bootstrap-vue.js.org

J
Jkristo ‣, 2020-02-15
@j-kristo

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 question

Ask a Question

731 491 924 answers to any question