What is it?
Tiny Carousel is a lightweight carousel for sliding html based content. It was built using the javascript jQuery library. Tiny Carousel was designed to be a dynamic lightweight utility that gives webdesigners a powerful way of enhancing a websites user interface.
Features
- Completely rewritten!
- Can slide vertical or horizontal
- AMD, Node, requirejs and commonjs support.
- Supports navigation by button or paging
- The point where the carousel starts can be set
- Animation time can be set in milliseconds or to 'instant'
- A interval can be set to slide automatically every given milliseconds
- Loops infinitely over its slides.
- Responsive
- Easy customizable
- Lightweight
- Source is on GitHub
Examples
If you need some more (advanced) examples you can find them here.
$(document).ready(function()
{
$('#slider1').tinycarousel();
});
$(document).ready(function()
{
$("#slider3").tinycarousel({
bullets : true
});
});
$(document).ready(function()
{
$("#slider4").tinycarousel({
bullets : true
, buttons : false
, animation : false
});
});
$(document).ready(function()
{
$("#slider5").tinycarousel({
axis : "y"
});
});
$(document).ready(function()
{
$("#slider7").tinycarousel({ interval: true });
var slider7 = $("#slider7").data("plugin_tinycarousel");
// The move method you can use to make a
// anchor to a certain slide.
//
$('#gotoslide4').click(function()
{
slider7.move(4);
return false;
});
// The start method starts the interval.
//
$('#startslider').click(function()
{
slider7.start();
return false;
});
// The stop method stops the interval.
//
$('#stopslider').click(function()
{
slider7.stop();
return false;
});
});
The generated API docs will be included here.
Usage
$(document).ready(function()
{
// Initialize a carousel like this.
//
$('#box').tinycarousel();
// Try this to get access to the actual carousel instance.
//
var box = $('#box').data("plugin_tinycarousel");
// Now you have access to all the methods and properties.
//
// box.update();
// console.log(box.slideCurrent);
//
// etc..
// You can bind to the move event like this.
//
$box.bind("move", function()
{
console.log("do something on every move to a new slide");
});
});