(+84) 463.28.7979

“thumbsMouseMover”


This carousel scrolls depending on the mouse position.

JavaScript

We should include jQuery framework and thumbsMouseMover.js by pointing src attribute in the script tag to those .js files.
1
The section of the index-#.html file contains these lines of code that initialize the script functionality with basic values:
2
We specify the id of the carousel element – #thumbs, and some additional options such as easing and animation duration.

HTML

Below you can see general HTML script representation:
3
Inside thetags you should insert the image. Adding another image is simple, just add another element with an image inside.

CSS

You can find script related stylesheet in the main style.css file.
4

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>