Check out my demonstration of this behavior on the fiddle I created: https://jsfiddle.net/fatmh6oc/
I am trying to achieve a fixed navigation bar at the top of the page that remains in place even when scrolling. I used position: sticky; top: 0;
, but encountered an undesirable visual effect when scrolling slowly. Despite implementing a CSS reset in my project to reset default margins to 0, there is still some content visible above the navbar, despite using top: 0
!
Are there any alternative methods I should consider to achieve this without experiencing this issue?