Download
Demo
- Overview
- Documents
User Rating: 0/5 ( 0 votes)
Your Rating:
jQuery.GI.Carousel.js could be used to create image carousels or slide presentations optimized for Mobile Phones and Tablets
Source: goldinteractive.github.io
1. INCLUDE JS FILES
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="jQuery.GI.Carousel.js"></script>
2. HTML
<div class="demo"> <div class="GICarousel demo1 GI_C_wrapper"> <ul class="GI_IC_items"> <li style="background-image:url('http://lorempixel.com/g/600/600?1')"></li> <li style="background-image:url('http://lorempixel.com/g/600/600?2')"></li> <li style="background-image:url('http://lorempixel.com/g/600/600?3')"></li> <li style="background-image:url('http://lorempixel.com/g/600/600?4')"></li> <li style="background-image:url('http://lorempixel.com/g/600/600?5')"></li> <li style="background-image:url('http://lorempixel.com/g/600/600?6')"></li> <li style="background-image:url('http://lorempixel.com/g/600/600?7')"></li> </ul> </div> </div>
3. JAVASCRIPT
$('.demo1').GICarousel({ arrows:true });
4. OPTIONS
var carousel = $('div.carousel').GICarousel({ // Callbacks API onBeforeInit: null, onCarouselReady: null, onViewPortUpdate: null, onItemChange: null, onDestroy: null, // settings responsive: true, parallax: true, parallaxFactor: 0.3, carousel: false, arrows: false, pagination: false, controlsWrapper: null, closebutton: false, keyboardNavigation: true, stopScroll: false, animationSpeed: 300, fullscreen: false, startId: 0, resizeDebounce: 300, slidesOffsetRight: 0, autoSlideInterval: 0, stopAutoSlideOnInteraction: true, swipeSensibility: 100, nextButtonClass: '', prevButtonClass: '', closeButtonClass: '' });
5. METHODS
Public API methods
setViewport
Resize all the carousel elements according to the parent wrapper
startAutoslide
Setup the autoslide according to the interval passed to the plugin
stopAutoslide
Stop the autoslide timer
moveToSlide(index)
Move the carousel to any slide
index {int} : it is the index of the slide you would like to show
next
Move to the next slide
prev
Move to the previous slide
bindAll
Bind all the plugin events
unbindAll
Remove all the plugin events
destroy
Remove all the plugin events and the plugin DOM elements