Minimal Mobile fist jQuery Carousel Plugin Touch Carousel - Download Minimal Mobile-fist jQuery Carousel Plugin - Touch Carousel

Download Minimal Mobile-fist jQuery Carousel Plugin – Touch Carousel

Posted on

This time I will share jQuery Plugin and tutorial about Minimal Mobile-fist jQuery Carousel Plugin – Touch Carousel, hope it will help you in programming stack.

Minimal Mobile fist jQuery Carousel Plugin Touch Carousel - Download Minimal Mobile-fist jQuery Carousel Plugin - Touch Carousel
File Size: 8.12 KB
Views Total: 1250
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   



Touch Carousel is a very small jQuery / Zepto plugin which helps you create responsive, automatic, touch-enabled and seamless scrolling carousel component for your mobile web pages or applications.

How to use it:

1. Include jQuery (or Zepto.js) library and the jQuery Touch Carousel plugin’s script on the html page.

  • carousel.js: Normal mode.
  • carousel_2.js: Infinite looping.
1 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
2 <script src="script/carousel.js"></script>

2. Add your custom content e.g. images to the carousel.

1 <div class="slideBox">
2   <ul class="slideUl">
3     <li class="list"><img src="1.jpg"></li>
4     <li class="list"><img src="2.jpg"></li>
5     <li class="list"><img src="3.jpg"></li>
6     <li class="list"><img src="4.jpg"></li>
7     <li class="list"><img src="5.jpg"></li>
8   </ul>
9 </div>

3. The primary CSS styles for the carousel.

01 .slideBox {
02   position: relative;
03   width: 100%;
04   padding-top: 46.666%;
05   overflow: hidden;
06 }
07  
08 .slideUl, .list, .list a img {
09   position: absolute;
10   left: 0px;
11   top: 0px;
12   width: 100%;
13   height: 100%;
14 }

4. Style the bottom dots pagination.

01 .point {
02   position: absolute;
03   z-index: 22;
04   bottom: 10px;
05   left: 50%;
06   font-size: 0px;
07   transform: translate3d(-50%, 0, 0);
08   -webkit-transform: translate3d(-50%, 0, 0);
09 }
10  
11 .point span {
12   display: inline-block;
13   width: 8px;
14   height: 8px;
15   margin: 0px 2px;
16   border: 1px solid #fff;
17   -webkit-border-radius: 50%;
18   border-radius: 50%;
19   cursor: pointer;
20 }
21  
22 .point span.current { background-color: #fff; }

5. That’s it.


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




source : jqueryscript.net