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)
Sorry man, you know me, terrible when it comes to understanding javascript haha!
So…
if (currentScroll > detachPoint) header.addClass('detached');
would be come (on the 8th line the last code I pasted):
`if ($(this).scrollTop() > detachPoint) header.addClass(‘detached’);
Is that about right?
Yep, that’s it. :-)
Thanks man, that’s great! :)