Skip to content
Discussion options

You must be logged in to vote

The problem is that your header is sticky. As soon as your header shrinks, your scroll position is decreased (since you are closer to the top of the page now that the first element is smaller), making your header go back up in size, which pushes you back down on the page. Consider using a fixed position header instead (with padding on the page to compensate for the initial header height).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sreejit7
Comment options

Answer selected by Sreejit7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants