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:

    http://justsaytheword.com/
    http://onward.fiskerautomotive.com/en-us

    Thanks a million

    # May 19, 2013 at 8:28 am

    [Here is an updated demo](http://jsfiddle.net/Vk7gB/187/) created because Github no longer allows linking to raw.github.com 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.

*May or may not contain any actual "CSS" or "Tricks".