Simple transition effect jQuery

Simple transition effect to rotate images one “slice” after another.

 

JS

$(document).ready(function() {
// $('#rotator').stripesRotator({ images: $('#imagescontainer') });
// $('#rotator').stripesRotator({ images: [ $('#img1'), $('#img2') ] });
/* TODO: It does not respect the array order. If a background image is set
* in the div, it will be (probably) loaded first, thus it will rotate that
* image with itself. */
$('#rotator').stripesRotator({ images: [ 'srot-pic1.jpg', 'srot-pic2.jpg'] });
});

Leave a comment