Make Responsive Content Slider with jQuery Scroll Carousel

Scroll Carousel is a scroll based jQuery plugin that lets you to make responsive content slider to slide images, video, inline contents and any other media in div. The plugin generate next and previous buttons dynamically to slide / scroll the contents.

Plugin Overview

Plugin: Scroll Carousel
Author: Michael Weber
Licence: MIT Licence
Published: May 1, 2019
Repository: Fork on GitHub
Dependencies: jQuery 1.3.1 or Latest version
and Font Awesome 4

File Type: zip archive (HTML, CSS & JavaScript)
Package Size: 9.42 KB

How to Make Responsive Content Slider with jQuery:

1. To Get started with Scroll Carousel, load the jQuery JavaScript library and Font Awesome into your HTML document.

<!-- jQuery -->
<script src=""></script>

<!-- Font Awesome 4-->
<link href="" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">

2. Now, include the scroll carousel‘s CSS and JavaScript files.

<!-- Scroll Carousel CSS -->
<link rel="stylesheet" href="css/scrollcarousel.css">

<!-- Scroll Carousel Js -->
<script src="js/scrollcarousel.js"></script>

3. Create HTML structure for content slider like below.
Note: You can put anything (i.e images, videos, ajax content etc.) between the carousel-item.

<div class="container">
  <ul class="carousel">
   <li class="carousel-item"> <div>Your Contents Goes Here </div> </li>
   <li class="carousel-item"> <div>Your Contents Goes Here </div></li>
   <li class="carousel-item"> <div>Your Contents Goes Here </div></li>
   <li class="carousel-item"> <div>Your Contents Goes Here </div></li>

4. The plugin automatically initialized after adding & creating its all assets. However, if you want to overwrite its option values, you can call the plugin in jQuery document ready function. All the default options are as follows:

   snapOffset: 0,
   snapAlignment: 'left',
   snapLeeway: 5,
   preventEdgeSnapping: true,
   buttonType: 'arrows',
   fadeObscured: false,
   fadeOpacity: 0.5,
   animationLength: 250,
   debounce: 200

Be the first to comment

Leave a Reply

Your email address will not be published.


3 × 4 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.