SyntaxFix
Write A Post
Hire A Developer
Questions
There's a plug-in for this if you don't want to write a bare-bones implementation yourself. It's called "scrollTo" (link). It allows you to perform programmed scrolling to certain points, or use values like -= 10px for continuous scrolling.
-= 10px
ScrollTo jQuery Plug-in