Basic Image Carousel Slider Plugin For jQuery - Wan Carousel

File Size: 866 KB
Views Total: 2152
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Basic Image Carousel Slider Plugin For jQuery - Wan Carousel

Wan Carousel is a dead simple jQuery plugin for creating an automatic, endless-looping image slider with a configurable sliding animation.

How to use it:

1. Include the required wan-carousel.css in the head section of the webpage.

<link rel="stylesheet" href="wan-carousel.css">

2. Add a list of images to the carousel slider.

<div class="wan-carousel">
  <div class="carousel-list">
    <img src="img/1.jpg" alt="img">
    <img src="img/2.jpg" alt="img">
    <img src="img/3.jpg" alt="img">
    <img src="img/4.jpg" alt="img">
  </div>
</div>

3. Initialzie the carousel slider.

$(".wan-carousel").WanCarousel();

4. Config the plugin.

$(".wan-carousel").WanCarousel({

  // autoplay interval
  interval: 8000,

  // animation speed
  speed: 400,
  
});

Change log:

2015-11-19

  • bugfix

2015-11-02

  • renamed class name.

2015-10-27

  • add callback when animationEnd

2015-10-14

  • bugfix: transitionEnd bug

2015-10-10

  • update css3 transform

2015-08-11

  • CSS update.

This awesome jQuery plugin is developed by feichao. For more Advanced Usages, please check the demo page or visit the official website.