SyntaxFix
Write A Post
Hire A Developer
Questions
What exactly are you doing in //do stuff?
//do stuff
You may be able to do something like:
(scrollLeft < 1000) ? //do stuff : (scrollLeft > 1000 && scrollLeft < 2000) ? //do stuff : (scrollLeft > 2000) ? //do stuff : //etc.