Get a free trial // Grow your CSS skills // Land your dream job

scrollTo #ID with mouse-wheel (jsfiddle attached)

  • # March 25, 2013 at 8:09 am

    Hey Mottie,

    Thanks for the script. I want to use in on my parallax style website so one automatically scrolls to the next div when using the mousewheel. A question though: what do I have to add in the script such that the effect is also triggered when using the arrow keys. Good examples of this i find:

    Thanks a million

    # May 19, 2013 at 8:28 am

    [Here is an updated demo]( created because Github no longer allows linking to files (the browser sees the files as text instead of js or css type files).

    # November 20, 2014 at 9:32 am

    Hi Mottie,

    Your script is exactly what I’m looking for! When implementing it turned out not to work with higher versions of jquery though. Any idea what I should do to fix this?

    Thanks a lot!

    # November 20, 2014 at 10:19 am

    Never mind, I found the update for jquery.scrollTo.js, now it works :)

Viewing 4 posts - 16 through 19 (of 19 total)

The topic ‘scrollTo #ID with mouse-wheel (jsfiddle attached)’ is closed to new replies.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed