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)

#250552
grimski
Participant

Before the code above, I used something called headroom.js (http://wicky.nillia.ms/headroom.js).

That actually handled the scroll back to the top very well and was a lot smoother but I had problems with the header leaving the page as it does in the CodePen. The issue with that was due to the changing of position from absolute to fixed and back again.