KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to run a function when someone scrolls down on an element. Something like this: $('div').scrollDown(function(){ alert('down') }); $('div').scrollUp(function(){ alert('up') }); But those functions don't exist. Is there a solution to this problem? Awwwards seem to be able to do it (logo in navbar changes depending on scroll direction). Unfortunately, the source code is compressed, so no luck there.
Tags (comma-separated)
Save Edits
Cancel