Hi there
I have 3 problems with my sticky menu bar setup. I made 2 bars for the menu. One bar shows the complete menu on big screens. The other bar shows a mobile burger menu and a cart off canvas on mobile screens.
Problem 1:
For the main menu on big screens, I set the bar to width auto but it does not resize to fit the menu items when it is sticky.
Problem 2:
The other bar (for smaller screens) is not sticky to the top of the screen. There is a gap between the top of the screen and the bar/menu:
Problem 3:
When smoothly scrolling down on my page, the moment the bar becomes sticky this scrolling is not smooth and slow anymore, but there is a bigger leap. It “jumps” faster to the top of the screen. Therefore the content below the sticky bar is not easily readable anymore. It disappears quicker to the top of the screen behind the menu.
See movie:
Thanks in advance for your help!
Greetings
Dries