Scrolling down to next element via keypress & scrollTo plugin - jQuery
- by lyrae
I am using jQuery's scrollTo plugin to scroll up and down my page, using UP arrow and DOWN arrow.
i have a bunch of div with class "screen", as so: <div class="screen-wrapper">...</div>
What I am trying to do is, when i press UP or DOWN, the window scrolls to the next, or previous div with class of "screen".
I have the keypresses…