I have a list of links in an overflow div. I want the user to be able to navigate this menu of links using the up and down buttons. I want the div to scroll up or down the height of 1 link element every time the user clicks the corresponding button. I tried some code, but I canโt figure out how to get it to scroll the desired amount in both directions. Can anyone help me out?
All links have the same class.
Edit:
I have already managed to scroll up and down. Now I just need to scroll through the small steps with a height of 1 link.
$(function() { var ele = $('#scroller'); var speed = 10, scroll = 5, scrolling; $('.scroller-btn-up').click(function() {
source share