Touch Swipe Bootstrap Carousel - Download Create Touch-enabled Bootstrap 4/3 Carousel With Swipe Carousel

Download Create Touch-enabled Bootstrap 4/3 Carousel With Swipe Carousel

Posted on

This time I will share jQuery Plugin and tutorial about Create Touch-enabled Bootstrap 4/3 Carousel With Swipe Carousel, hope it will help you in programming stack.

Touch Swipe Bootstrap Carousel - Download Create Touch-enabled Bootstrap 4/3 Carousel With Swipe Carousel
File Size: 195 KB
Views Total: 32752
Last Update:
Publish Date:
Official Website: Go to website
License: MIT

Swipe Carousel is a jQuery plugin to create mobile-friendly Bootstrap carousels by adding smart touch support to the native Bootstrap 4 or Bootstrap 3 carousel component.

With this plugin, the users are able to navigation between carousel slides by swiping on mobile devices.

How to use it:

1. Create a Bootstrap carousel on the page following the markup structure like this:

1 <link rel="stylesheet" href="" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
2 <script src="" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
3 <script src="" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
4 <script src="" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
01 <div id="carouselExampleIndicators" class="carousel slide my-carousel" data-ride="carousel">
02   <ol class="carousel-indicators">
03     <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
04     <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
05     <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
06   </ol>
07   <div class="carousel-inner">
08     <div class="carousel-item active">
09       <img class="d-block w-100" src="" alt="First slide">
10     </div>
11     <div class="carousel-item">
12       <img class="d-block w-100" src="" alt="Second slide">
13     </div>
14     <div class="carousel-item">
15       <img class="d-block w-100" src="" alt="Third slide">
16     </div>
17   </div>
18   <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
19     <span class="carousel-control-prev-icon" aria-hidden="true"></span>
20     <span class="sr-only">Previous</span>
21   </a>
22   <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
23     <span class="carousel-control-next-icon" aria-hidden="true"></span>
24     <span class="sr-only">Next</span>
25   </a>
26 </div>

2. Download and include the JavaScript file bootstrap-swipe-carousel.min.js after Bootstrap JS.

1 <script src="dist/bootstrap-swipe-carousel.min.js"></script>

3. Initialize the Swipe Carousel plugin and done.

1 $('.my-carousel').carousel().swipeCarousel({
2   // options here
3 });

4. Set the swipe sensitivity.

1 $('.my-carousel').carousel().swipeCarousel({
2   // low, medium or high
3   sensitivity: 'high'
4 });

5. You can also implement the Swipe Carousel as an ES6 module.

1 # NPM
2 $ npm install swipe-carousel --save
1 import $ from 'jquery';
2 import bootstrap from 'bootstrap';
3 import BootstrapSwipeCarousel from 'smart-bootstrap-swipe-carousel';



  • Fix IOS issue with pointer events

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

source :