Menu button auto-scrolls to top when pressed + Scroll to Top change button icon.
-
Hi,
I have run into two problems related to the menu button:
1. When pressed, the page returns to the beginning (auto-scrolls to top).
The CSS that I use so that the Header is fixed is the following:
.site-header {position: sticky; top: 0; z-index: 2;}
My goal is that by activating and deactivating the menu button, the page stays where it was.2. When activating a Scroll to Top by using #anchor, the animation of the menu button changes, but without activating the menu, and the symbol is turned upside down.
How To Reproduce
Width < 1240px
Video showing: https://youtu.be/zW7R58KM_BAI’m not sure if 1 is related with 2.
The page I need help with: [log in to see the link]
- The topic ‘Menu button auto-scrolls to top when pressed + Scroll to Top change button icon.’ is closed to new replies.