How to use slick slider jQuery
How to use slick slider jquery
A simple way to use slick slider jQuery, This is a
Fully Responsive & Flexible jQuery slider
Slick is a fresh new jQuery plugin for creating fully customization, responsive and mobile friendly carousels/sliders that work with any html elements.
CSS
<link href="http://kenwheeler.github.io/slick/slick/slick.css" type="text/css" rel="stylesheet"/>
<style type="text/css">
.lazy {
width: 30%;
background: wheat;
height: 400px;
margin: 0 auto;
font-size: 50px;
text-align: center;
}
HTML
<div class="lazy">
<div><h3>Test 1</h3></div>
<div><h3>Test 2</h3></div>
<div><h3>Test 3</h3></div>
<div><h3>Test 4</h3></div>
<div><h3>Test 5</h3></div>
</div>
JS
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="http://kenwheeler.github.io/slick/slick/slick.js"></script>
<script type="text/javascript">
$('.lazy').slick({
lazyLoad: 'ondemand',
slidesToShow: 1,
slidesToScroll: 1
});
</script>
Follow On Social Media -
Follow on Facebook - https://www.facebook.com/Front-End-Issue-487743404963344
Follow on instagram - https://www.instagram.com/frontendissue/
Follow on Twitter - https://twitter.com/IssueEnd
Follow on Linkedin - https://www.linkedin.com/in/hitesh-patidar-34253a10a/
Follow on GooglePlus - https://plus.google.com/118238268171156252992
Follow on pinterest - https://in.pinterest.com/frontendissue/
Comments
Post a Comment