Github

simpleSlide Lite

Small 318 bytes jQuery Plugin for create slides.
Lite (438 bytes) and Extended (830 bytes) version adds more options.

Download


How to use:

Call the plugin on the parent of elements to make them a slide.

Options:

$(selector).simpleSlide(delay);

$('elem').simpleSlide(int);
Defaults to 5000 miliseconds delay.

This version offers a function to force a transition.
This is the code of the example on this page, showing how to add "prev/next" buttons.
var s = $('.banner').simpleSlide();

$('.prev').on('click', function(){s.go('p'); return false;});
$('.next').on('click', function(){s.go('n'); return false;});


Example:



Legal:

Author & copyright (c) 2013: Masquerade Circus
Dual MIT & GPLv2 license