Cool, glad I could be of help.
Just be aware - running code on 'scroll' can be hugely detrimental to performance. You should seriously consider using either _.throttle or _.debounce to restrict the amount of times your onScroll
function executes.
Cool, glad I could be of help.
Just be aware - running code on 'scroll' can be hugely detrimental to performance. You should seriously consider using either _.throttle or _.debounce to restrict the amount of times your onScroll
function executes.