This time I will share jQuery Plugin and tutorial about Easy Coverflow Carousel Plugin For jQuery – Carousel.js, hope it will help you in programming stack.
A cross-browser (IE8+) jQuery plugin used for create a coverflow-style 3D perspective image carousel / rotator with convenient configuration options.
How to use it:
1. Create a list of images to be displayed in the carousel.
1 |
< ul class = "poster-list" > |
2 |
< li class = "poster-item" >< a href = "#" >< img src = "1.jpg" alt = "" width = "100%" /></ a ></ li > |
3 |
< li class = "poster-item" >< a href = "#" >< img src = "2.jpg" alt = "" width = "100%" /></ a ></ li > |
4 |
< li class = "poster-item" >< a href = "#" >< img src = "3.jpg" alt = "" width = "100%" /></ a ></ li > |
5 |
< li class = "poster-item" >< a href = "#" >< img src = "4.jpg" alt = "" width = "100%" /></ a ></ li > |
6 |
< li class = "poster-item" >< a href = "#" >< img src = "5.jpg" alt = "" width = "100%" /></ a ></ li > |
2. Create navigation buttons which allow the user to rotate through the images manually.
1 |
< div class = "poster-btn poster-prev-btn" ></ div > |
2 |
< div class = "poster-btn poster-next-btn" ></ div > |
3. The wrap them into a container element and override the default settings in the data-setting
attribute . The whole markup structure should be like this:
01 |
< div class = "poster-main" id = "carousel" data-setting='{ |
04 |
< div class = "poster-btn poster-prev-btn" ></ div > |
05 |
< ul class = "poster-list" > |
06 |
< li class = "poster-item" >< a href = "#" >< img src = "1.jpg" alt = "" width = "100%" /></ a ></ li > |
07 |
< li class = "poster-item" >< a href = "#" >< img src = "2.jpg" alt = "" width = "100%" /></ a ></ li > |
08 |
< li class = "poster-item" >< a href = "#" >< img src = "3.jpg" alt = "" width = "100%" /></ a ></ li > |
09 |
< li class = "poster-item" >< a href = "#" >< img src = "4.jpg" alt = "" width = "100%" /></ a ></ li > |
10 |
< li class = "poster-item" >< a href = "#" >< img src = "5.jpg" alt = "" width = "100%" /></ a ></ li > |
12 |
< div class = "poster-btn poster-next-btn" ></ div > |
4. Initialize the carousel and done.
5. All possible plugin options:
26 |
"verticalAlign" : "bottom" |
This awesome jQuery plugin is developed by LikaiLee. For more Advanced Usages, please check the demo page or visit the official website.