I
I
Ilya Muromtsev2018-03-17 14:03:39
css
Ilya Muromtsev, 2018-03-17 14:03:39

How to avoid resetting the scrollbar after clicking on a button?

There is a menu button on the page.
CodePen
Let's say I scroll the page to the end, after I press the menu button and the scrolling goes to the beginning, how to avoid that the scrolling remains in place after pressing the button?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan Krapivin, 2018-03-17
@und88

Replace with Scroll scrolls to the beginning because of the anchor in the link <a href="#" class="menu-link">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question