Wednesday, 15 May 2013

jquery - Scroll a div horizontally -


I'm trying to use jquery-mousewhell to scroll a specific div. Here's an example of what I'm trying to do:

  $ ("scroll-image"). Muswell (function (event, delta) {event.preventDefault (); $ ('.scroll-image'). ScrollLeft - = (delta * 30);});  

In the example, I would like to scroll to the image when the mouse is over it


No comments:

Post a Comment