Slick slider helps to improve responsive html layouts with an easy manner. The below example shows the basic image slick slider with complete html layout.
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.5.9/slick.min.css"/>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.5.9/slick-theme.min.css"/>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
<link rel="stylesheet" type="text/css" href="style2.css"/>
<title>Slick Slider Basic</title>
</head>
<body>
<div class="main">
<div class="slider slide-show">
<div class="img-wish">
<img src="img1.png" >
</div>
<div class="img-wish">
<img src="img2.png" >
</div>
<div class="img-wish">
<img src="img3.png" >
</div>
</div>
</div>
</body>
<script>
$('.slide-show').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
dots: true,
fade: true,
});
</script>
</html>
Create external stylesheet and add it to the above example
body{
background:#ccc;
}
.main {
font-family:Arial;
width:500px;
display:block;
margin:0 auto;
}
.img-wish{text-align: center !important;}
.img-wish img{display: inline;}
More examples from slick slider codepen – click here
Popular Posts
-
Show / Hide div based on dropdown selected using jQuery
Learn the details about show / hide div based on dropdown selected using jQuery instantly right from your google search results with the Codeamend.
-
Infinite Scrolling on PHP website using jQuery and Ajax with example
Article which helps to load more data in a single page using Ajax and jQuery without affecting the page loading speed. When you are fetching…
-
How to Convert MySQL Data to JSON using PHP
Learn to convert MySQL Data to JSON using PHP instantly right from your google search results with the Codeamend.
-
Custom Authentication Login And Registration Using Laravel 8
Learn the details about the Authentication Using Laravel 8 instantly right from your google search results with the Codeamend
-
Slick Slider Basic With Example
Learn the details about Slick slider basic with example using jquery instantly right from your google search results with the Codeamend.
Total Views: 7,608
Share