SyntaxFix
Write A Post
Hire A Developer
Questions
Is this value intended? if (scroll <= 500) { ... This means it's happening from 0 to 500, and not 500 and greater. In the original post you said "after the user scrolls down a little"
if (scroll <= 500) { ...