Responsive Owl-carousel Slider using HTML CSS & jQuery | CodingWang

Hello visitors, now in this website you’ll learn to produce a Owl-carousel this is certainly responsive slider HTML CSS & jQuery. Earlier in the day I have also shared a weblog on the best way to create an Owl-carousel Cards Slider but this design just isn't tuned in to products which can be mobile indeed there weren’t controls to slide cards. Therefore today I’m likely to develop a Owl-carousel that is responsive slider control buttons to slip card.

Responsive Owl-carousel Slider using HTML CSS & jQuery
Responsive Owl-carousel Slider using HTML CSS & jQuery

OWL Carousel is really a jQuery that is touch-enabled that permits one to produce beautiful receptive carousel sliders. A carousel is just a mix of rotating ads, or even a slideshow, that describes on the website of the store. It enables you to show as much as five slides comprising images and text, that can be connected to products that are specific pages.


In the program (receptive Owl-carousel Slider ), regarding the website, there are shown only three cards among five cards with different background-color and these cards slide instantly after each two seconds. There are also control or nav buttons to manually slide cards. This design is fully receptive for just about any product plus in pills, you can find shown two cards with three control buttons as well as in cellular devices, there clearly was shown one card with five control buttons.


If you’re feeling tough to determine what I am saying. You can watch a full video guide on this system (receptive Owl-carousel Slider).


Video Tutorial of Responsive Owl-carousel Slider

Coming Soon...

When you look at the video clip, you have seen the Owl-carousel this is certainly responsive slider i am hoping you've got recognized the basic rules behind creating this system. These sliders are quick and simple to create due to the Owl-carousel jQuery plug-in. We are able to also produce this scheduled system with pure JavaScript but in javascript, we have to code even more as compare to using a plugin.


If you prefer this program (receptive Owl-carousel Slider) and would like to get source codes. You can easily get the source codes with this program. To get the resource codes you just need certainly to scroll straight down. You need to use this carousel that is pre-built on your own HTML pages, projects, and websites.


Receptive Owl-carousel Slider [Source Codes]

To produce this system (receptive Owl-carousel Slider). First, you will need to produce two Files one HTML File and a different one is CSS File. After creating these data just paste the codes that are after your file.

First, develop an HTML file with the true name of index.html and paste the given rules in your HTML file. Keep in mind, you’ve to produce a file with .html extension.

<!DOCTYPE html>
<!-- Created By CodingNepal -->
<html lang="en" dir="ltr">

<head>
<meta charset="utf-8">
<title>Responsive Owl-Carousel Slider | CodingNepal</title>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="wrapper">
<div class="carousel owl-carousel">
<div class="card card-1">
A
</div>
<div class="card card-2">
B
</div>
<div class="card card-3">
C
</div>
<div class="card card-4">
D
</div>
<div class="card card-5">
E
</div>
</div>
</div>
<script>
$(".carousel").owlCarousel({
margin: 20,
loop: true,
autoplay: true,
autoplayTimeout: 2000,
autoplayHoverPause: true,
responsive: {
0: {
items: 1,
nav: false
},
600: {
items: 2,
nav: false
},
1000: {
items: 3,
nav: false
}
}
});
</script>
</body>

</html>

Second, create a CSS file aided by the true name of style.css and paste the given codes in your CSS file. Keep in mind, you’ve to create a file with .css expansion.

@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}

body {
min-height: 100vh;
display: flex;
align-items: center;
background: #d90000;
}

.wrapper {
width: 100%;
}

.carousel {
max-width: 1200px;
margin: auto;
padding: 0 30px;
}

.carousel .card {
color: #fff;
text-align: center;
margin: 20px 0;
line-height: 250px;
font-size: 90px;
font-weight: 600;
border-radius: 143px;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel .card-1 {
background: #ff0008;
}

.carousel .card-2 {
background: #0072bc;
}

.carousel .card-3 {
background: #00fc22fd;
}

.carousel .card-4 {
background: #ff5100;
}

.carousel .card-5 {
background: #ff00f7;
}

.owl-dots {
text-align: center;
margin-top: 40px;
}

.owl-dot {
height: 15px;
width: 45px;
margin: 0 5px;
outline: none;
border-radius: 14px;
border: 2px solid #ffffff !important;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}

.owl-dot.active,
.owl-dot:hover {
background: #fdfdfd !important;
}

That’s all, now you’ve effectively developed a Owl-carousel that is receptive slider HTML CSS & jQuery. Then please comment down or e mail us through the contact web page in the event your code does not work or you’ve experienced any error/problem.

Post a Comment

Previous Post Next Post

Follow Me Google News