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).

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic.

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