Github

simpleSlide Extended

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(options);

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

This version offers a function to force a transition and the option to change the transition speed, delay, and add a node to make a nav bar.
This is the code of the example on this page, showing how to add "prev/next" buttons and a thumb nav.
var s = $('.banner').simpleSlide({time: 600, delay: 6000, nav: '.thumbs', thumbs: true});

$('.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