Customizable slider with CSS & jQuery

by Marcin Sołtysiuk

textSlider release v0.7 (11.07.2010)

is a fast and full customizable jQuery plugin for sliding html based content on all websites.

face 1 face 2 face 3 face 4 face 5 face 6 face 7 face 8 face 9 face 10 face 11 face 12 face 13 face 14 face 15
live options
(autoslide)
milliseconds
slide(s)
(current slide)
(visible slides)
(animation)
for more parameters use semicolons
(breadcrumb calculate numbers - when step is higher then >1)
show example code

example code

#javascript

<link href="css/default/jquery.textslide.css" rel="stylesheet" type="text/css" media="screen"> <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="js/jquery.textslide.js" type="text/javascript"></script> <script src="js/jquery.textslide.wheel.js" type="text/javascript"></script> <script src="js/jquery.textslide.auto.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $('#slider').textSlide ({auto: false, step: 5, slide: 0, slides: 5, wait: 500}); }); </script>

#html

<div id="slider" class="t-slider"> <img src="images/face1.jpg" alt="face 1" title="face 1"/> <img src="images/face2.jpg" alt="face 2" title="face 2"/> <img src="images/face1.jpg" alt="face 3" title="face 3"/> <img src="images/face2.jpg" alt="face 4" title="face 4"/> <img src="images/face1.jpg" alt="face 5" title="face 5"/> <img src="images/face2.jpg" alt="face 6" title="face 6"/> <img src="images/face1.jpg" alt="face 7" title="face 7"/> <img src="images/face2.jpg" alt="face 8" title="face 8"/> <img src="images/face1.jpg" alt="face 9" title="face 9"/> <img src="images/face2.jpg" alt="face 10" title="face 10"/> <img src="images/face1.jpg" alt="face 11" title="face 11"/> <img src="images/face2.jpg" alt="face 12" title="face 12"/> <img src="images/face1.jpg" alt="face 13" title="face 13"/> <img src="images/face2.jpg" alt="face 14" title="face 14"/> <img src="images/face1.jpg" alt="face 15" title="face 15"/> </div>

Features:

Standard available options

slide0where should the carousel start?
slides1how many blocks do you want to display?
step1how many blocks do you want to move at a time?
axis'horizontal' : ('horizontal','vertical')vertical or horizontal scroller?
controlstrue : (true,false)show left and right navigation buttons?
eventqueuetrue : (true,false)queue for events.
previous{} : (href,title,innerHTML...)object with attributes of html link previous tag.
next{} : (href,title,innerHTML...)object with attributes of html link next tag.
fx'slide' : ('slide','show','fade')type of animation.
fxoption[1500]array of options, first param is how fast must the animation move in milliseconds?
onSlideEndfunction ($pane, option) {}function that executes after every move.
var $slider = $('#slider'); // init slider plugin $slider.textSlide ({auto: false, step: 5, wait: 500});

Functions

go(direction)go to slide ['next', 'previous', integer]
destroy()destroy slider
var $slider = $('#slider'); // go function to specified slide $slider.textSlide ('go', 2);

Available options for 'autoslide' extansion

auto'next' : ('next','previous')move to the next block on interval.
wait6000interval time in milliseconds.
onAutofunction (node) {}function that executes before auto move.
onAutoStopfunction (node) {}function that executes after auto move.

Functions

auto()start sliding

Download jquery.textslide.auto.js (2kb)

Available options for 'autosize' extansion

autosizetrue : (true,false)move to the next block on interval.

Download jquery.textslide.autosize.js (2kb)

Available options and there default value for 'mousewheel' extansion

wheeltrue : (true,false)move to the next block on interval.

Download jquery.textslide.wheel.js (2kb)

Available options for 'breadcrumb' extansion

breadcrumbtrue : (true,false)move to the next block on interval.
btitle'slide 'interval time in milliseconds.
bcalculate'slide 'interval time in milliseconds.

Functions

breadcrumb()create breadcrumb
current(id)set current slide in breadcrumb
id = Math.ceil (options._nextslide/options.step)*options.step

Download jquery.textslide.breadcrumb.js (2kb)