HI!
I would like to create a Smooth scroller based on mouse position. The idea is to create a outer div with a fixed width. The content is very wide and has to be scrolled to left or right, based on the mouse position. It would be great if the content is 'infinite' or 'endless'. The content is a very wide image that repeats 'seamelesly'.
Can anybody help me by creating this in jQuery?
Thanx in advance!
Alex
There's a jQuery plugin called Smooth Div Scroll that does exactly this. It scrolls content smoothly and you can control it by hovering with the mouse over two hotspots (left and right, visible or invisible) inside the scroller. There is an option for infinite scrolling.
You can set the image as the background of the
div
and animate thebackground-position
with jquery. (and because it got me interested, here is an implementation)demo http://jsfiddle.net/gaby/72yhW/
html
css
jquery
There are two existing awesome jQuery plugins that do exactly what you seek:
1) http://manos.malihu.gr/jquery-thumbnail-scroller
2) http://www.convergent-evolution.co.uk/resources/jquery-plugins/scrolling-carousel/
Number 1 is more refined in that it has a smoother scrolling action and can optionally highlight the current hovered over item.