- Overview
- Documents
Images rotation is a jQuery plugin switches the images while you are holding a mouse cursor on the element. Animates both sr cattribute for images and background-image attribute for any other element.
Source: sladex.org
Aug 12, 2014 in Animation 2836 views
Images rotation is a jQuery plugin switches the images while you are holding a mouse cursor on the element. Animates both sr cattribute for images and background-image attribute for any other element.
Source: sladex.org
1. INCLUDE JS FILES
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="jquery.images-rotation.min.js"></script>
2. HTML
<div class="images-rotation" data-images='["img/1.jpg", "img/2.jpg", "img/3.jpg", "img/4.jpg"]'> <img src="img/1.jpg" alt=""> </div>
3. JAVASCRIPT
$('.images-rotation').imagesRotation();
4. OPTIONS
Tagged with:
images rotation
switches the images
holding
mouse cursor
animates
background-image
jquery rotation
Related Articles