jQuery: Scroll down page a set increment (in pixels) on click?

Posted by bcWeb on Stack Overflow See other posts from Stack Overflow or by bcWeb
Published on 2010-04-17T17:38:00Z Indexed on 2010/04/17 17:43 UTC
Read the original article Hit count: 161

Filed under:

I'm trying to make a page scroll down 150px from the current position when an element is clicked. So lets say you're roughly halfway scrolled down a page. You click this link, and it will slide you down an additional 150 pixels.

Is this possible with jQuery?

I've been looking at scrollTop and the scrollTo plugin, but I can't seem to connect the dots.

© Stack Overflow or respective owner

Related posts about jQuery