Portfolio Site jumps to top on mobile browser - issue in Navbar

Portfolio Site jumps to top on mobile browser - issue in Navbar
0.0 0

#1

Hi,
I’ve got an issue where my navbar code is making the site jump back to the top after I scroll down… I’ve been working on this for 5 hours and can’t find any solutions. Please help!

http://codepen.io/willwaymel/pen/gWzowo

I’m using bootstrap 4.

I’ve tried wrapping the whole thing in a div, adding “-webkit-backface-visibility: hidden;” in the css to the nav element and navbar-nav class, among other things.

Thanks,
Will


#2

Your Codepen link is broken. Did you figure this out? If you still need help, repost a working link.


#3

Thanks for looking into this. Yes, I figured it out… went to Bootstrap 4’s example of headers, and compared line by line with my code. the working link is now https://codepen.io/willwaymel/pen/VbdbOg. Thanks! There wasn’t any typo, but some different things I was doing. I commented it out in the code in case anyone wants to see for the future what not to do ;).