W
W
WebforSelf2017-09-20 14:37:11
HTML
WebforSelf, 2017-09-20 14:37:11

Bootstrap catalog menu optimization?

Good afternoon, there is a site made up on bootstrap.
9e5bea725d544440ba72494ca347202b.png
This is what the catalog menu looks like on the desktop.
In mobile
a261fce89cb845a9a952613dc477c797.png
The essence of the issue: when you go through the categories, they unfold and, accordingly, once you get to another page, you find yourself at the very top. That is, you have to scroll through all the categories on your phone to get to the content area of ​​each category. What solution will be optimal for this situation, so that the user is comfortable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Alexandrov, 2017-09-20
@WebforSelf

For mobile screens, you can make, by default, a smooth scroll to the content area. For example,

if ($(window).width() < 768) {
     $("#content").animate({scrollTop: 10}, 1000);
}

More details: api.jquery.com/scrollTop
###
You can remake this long menu by folding it into a hamburger and/or expanding it by clicking on the icon. For example, https://bootsnipp.com/snippets/featured/navbar-lat...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question