Skip to content

andypa/jquerymobile-carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements:
- jQuery Mobile 1.0b1
- jQuery 1.6.1


Usage:

<ul id="carousel">
    <li><img src='http://lorempixum.com/500/500/nature/1' width="100%"></li>
    <li><img src='http://lorempixum.com/500/500/nature/2' width="100%"></li>
    <li><img src='http://lorempixum.com/500/500/nature/3' width="100%"></li>
    <li><img src='http://lorempixum.com/500/500/nature/4' width="100%"></li>
</ul>

To initiate the image carousel, add following script:

$(document).ready(function() {
    $('#carousel').carousel({endless: true});
});

The options currently are:

endless: true/false (default: true)

If endless is set to true, following functionality is activated:
- If you are on the first image and swiperight, you jump to the last image
- If you are on the last image and swipeleft, you jump to the first image

About

jQuery Mobile Carousel plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published