swipe testimonial slider owl carousel

How we can create a draggable/swipe slider using JS or any JS library? Solution: See this Swipe Testimonial Slider With Owl Carousel, JS Library Based Slider.

Previously I have shared a responsive testimonial slider with slick.js, but this program is based on a library that is powered by jQuery. Basically,  Owl carousel is a touch-enabled jQuery plugin that lets you create a beautiful, responsive carousel slider. There are many dedicated libraries for creating sliders but some are popular like slick.js, owl-carousel, etc.

Today you will learn to create a draggable testimonial carousel with a jQuery plugin. Basically, there are 5 review sections with dummy content like name, image, etc. Each section contains an image, review text, and name with a shape like a name is placed on a rounded rectangle and the image is placed in a circle shape.

So, Today I am sharing Swipe Testimonial Slider With Owl Carousel. There I have used bootstrap for creating a responsive layout and owl carousel for creating the slider. The owl carousel is a jQuery plugin and jQuery is a JavaScript library, that’s why we can call this JS based program. You can use this program to creating a content slider on your website.

If you are thinking now how this review carousel actually is, then see the preview given below.

Preview Of Touch Enabled Slider With jQuery Plugin

See this video preview to getting an idea of how this testimonial slider looks like.

Live Demo

Now you can see this visually, also you can see it live by pressing the button given above. If you like this then get the source code of its.

You May Also Like:

Swipe Testimonial Slider With Owl Carousel Source Code

Before sharing source code, let’s talk a little bit about it. First I have created the layout which is based on a bootstrap grid system based, created a main section and placed row and column grid inside it. After that, I have paced 5 div for 5 different review sections, each div contains a div for a shadow effect, an image, a paragraph tag for review text, and another div for the name.

Now using CSS I have placed all the elements in the right place, as you can see in the preview. I gave style to elements like a shadow, color, position, etc. Inside the HTML tags, I have placed bootstrap‘s pre-built class name for the size on multiple screens. In CSS file I have heavily used transform command and gave max-width to some elements like image.

As you know this program is based on the owl carousel (info)so, the JS file has fewer lines of codes. In the JS file, I have created a function on document ready using (document).ready command. And placed values in pre-built commands which are created in the plugin like speed, autoplay, etc. Left all other things you will understand after getting the codes, I can’t explain all in writing.

For creating this program you have to create 3 files. Firs for the HTML, the second one is for CSS, and the third one is for javascript. Follow the steps to creating this without any error.

index.html

Create an HTML file named ‘index.html‘ and put these codes given below.

style.css

Now create a CSS file named ‘style.css‘ and put these codes given here.

function.js

The final step, Create a JavaScript file named ‘function.js‘ and put the codes.

That’s It. Now you have successfully created Swipe Testimonial Slider With Owl Carousel, JS Library Based Slider. If you have any doubt or question then comment down below.

Thanks For Visiting, Keep Visiting.

3 COMMENTS

  1. Hi shaan,
    First thanks a lot for this post, it is too important.
    Can you please show me how to add customised nav buttons (prev next) to this testimonial.
    thanks

  2. Hello,
    First thanks a lot for this post, it is too important.
    Can you please show me how to add customised nav buttons (prev next) to this testimonial.
    thanks

LEAVE A REPLY

Please enter your comment!
Please enter your name here