Basic
$(function(){
$(".basic").carousel();
});
Fade - inline
$(function(){
$(".basic").carousel();
});
data-carousel-options='{"single":true}'
AutoAdvance and infinite
$(".time").carousel({
autoAdvance : true,
autoTime : 3000,
infinite : true
});
Show - inline
Paged
$(".show").carousel();
data-carousel-options='{"paged":true,"show":3}'
Uneven
$(".show").carousel();
data-carousel-options='{"show":3}'
Responsive counts
$(".responsive").carousel({
show: {
"600px" : 2,
"900px" : 3
}
});
Custom controls
$(".custom").carousel({
customClass : "controls",
labels: {
"next" : "Next",
"previous" : "Prev"
}
});
Custom Previous/Next
$(".custom2").carousel({
customClass : "controls",
controls: {
"next" : ".custom_next",
"previous" : ".custom_previous"
}
});
<button class="custom_previous">Previous</button>
<button class="custom_next">Next</button>