Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Hide/reveal header on scroll (works but a bit jumpy) Reply To: Hide/reveal header on scroll (works but a bit jumpy)

#250543
grimski
Participant

Nice one @Shikkediel, yeah that’s looking much better.

I did notice on my example that if you scrolled down at a slow speed, less than the hideShowOffset, once the header left the screen it could appear again even if you were scrolling and it looked a little odd. However, that’s not surprising given how it’s supposed to work. Also it looks like it’s disappeared in your example – not sure if it’s something you noticed too?

What’s your opinion on the logo/nav toggle dropping down at the end? I think I quite like it. It just looks a little odd if you leave the bar a few pixels from the top as they’re not centred, but again I don’t think this is a big issue and it probably looks fine. I’m just looking at it a bit too much maybe!