"slick slider"
Bootstrap 4.1.1 Snippet by ravic9089

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/> <link href="https://greenandfresh.co.in/css/slick-theme.css" rel="stylesheet" type="text/css" media="all" /> <script src="https://greenandfresh.co.in/js/jquery-2.1.4.min.js"></script> <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script> <link href="https://greenandfresh.co.in/css/font-awesome.css" rel="stylesheet"> <section class="customer-logos slider"> <div class="slide"><a href="https://greenandfresh.co.in/home/allproductsbycategory?str=fresh-vegetables"><img src="https://greenandfresh.co.in/admin/uploads/category/icon/vegetables-icon-png-5.png"><span class="text-slick">FRESH VEGETABLES</span></a></div> <div class="slide"><a href="https://greenandfresh.co.in/home/allproductsbycategory?str=fresh-fruits"><img src="https://greenandfresh.co.in/admin/uploads/category/icon/NicePng_fruit-bowl-png_2405501.png"><span class="text-slick">FRESH FRUITS</span></a></div> <div class="slide"><a href="https://greenandfresh.co.in/home/allproductsbycategory?str=fresh-vegetables"><img src="https://greenandfresh.co.in/admin/uploads/category/icon/vegetables-icon-png-5.png"><span class="text-slick">FRESH VEGETABLES</span></a></div> <div class="slide"><a href="https://greenandfresh.co.in/home/allproductsbycategory?str=fresh-fruits"><img src="https://greenandfresh.co.in/admin/uploads/category/icon/NicePng_fruit-bowl-png_2405501.png"><span class="text-slick">FRESH FRUITS</span></a></div> <div class="slide"><a href="https://greenandfresh.co.in/home/allproductsbycategory?str=fresh-vegetables"><img src="https://greenandfresh.co.in/admin/uploads/category/icon/vegetables-icon-png-5.png"><span class="text-slick">FRESH VEGETABLES</span></a></div> <div class="slide"><a href="https://greenandfresh.co.in/home/allproductsbycategory?str=fresh-fruits"><img src="https://greenandfresh.co.in/admin/uploads/category/icon/NicePng_fruit-bowl-png_2405501.png"><span class="text-slick">FRESH FRUITS</span></a></div> </section>
@charset 'UTF-8'; /* Slider */ .slick-loading .slick-list { background: #fff url('./ajax-loader.gif') center center no-repeat; } /* Slider */ .text-slick{ text-align:center; margin-top:-3px; font-size:15px; color:#666; } .slick-slide { margin: 0px 20px; } .slick-slide img { width: 40%; margin:auto; } .slick-slide img span{ text-align:center; margin-top:-4px; } .slick-slider { position: relative; display: block; box-sizing: border-box; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; -khtml-user-select: none; -ms-touch-action: pan-y; touch-action: pan-y; -webkit-tap-highlight-color: transparent; } .slick-list { position: relative; display: block; overflow: hidden; margin: 0; padding: 0; } .slick-list:focus { outline: none; } .slick-list.dragging { cursor: pointer; cursor: hand; } .slick-slider .slick-track, .slick-slider .slick-list { -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } .slick-track { position: relative; top: 0; left: 0; display: block; } .slick-track:before, .slick-track:after { display: table; content: ''; } .slick-track:after { clear: both; } .slick-loading .slick-track { visibility: block; } .slick-slide { display: none; float: left; height: 100%; min-height: 1px; border:0px solid #f3f1f1; text-align:center; } .slide.slick-slide a { outline: none; } .customer-logos { margin: 20px 100px; width: 87%; } [dir='rtl'] .slick-slide { float: right; } .slick-slide img { display: block; } .slick-slide.slick-loading img { display: none; } .slick-slide.dragging img { pointer-events: none; } .slick-initialized .slick-slide { display: block; } .slick-loading .slick-slide { visibility: hidden; } .slick-vertical .slick-slide { display: block; height: auto; border: 1px solid transparent; } .slick-arrow.slick-hidden { display:block; } /* Icons */ @font-face { font-family: 'slick'; font-weight: normal; font-style: normal; src: url('./fonts/slick.eot'); src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg'); } /* Arrows */ .slick-prev, .slick-next { font-size: 0; line-height: 0; position: absolute; top: 50%; display: block; width:35px; height:35px; border-radius:50%; border: 1px solid green; padding: 0; -webkit-transform: translate(0, -50%); -ms-transform: translate(0, -50%); transform: translate(0, -50%); cursor: pointer; color: #026429; border: 1px solid green; background: #00800000; } .slick-prev:hover, .slick-prev:focus, .slick-next:hover, .slick-next:focus { color: #fff; outline: none; background: #026429; } .slick-prev:hover:before, .slick-prev:focus:before, .slick-next:hover:before, .slick-next:focus:before { opacity: 1; color: #fff; } .slick-prev.slick-disabled:before, .slick-next.slick-disabled:before { opacity: .25; } .slick-prev:before, .slick-next:before { font-family: 'slick'; font-size: 22px; text-align: center; line-height: 1; opacity: .75; color: #000e02; -webkit-font-smoothing: antialiased; } .slick-prev { left: -20px; } [dir='rtl'] .slick-prev { right: -25px; left: auto; } .slick-prev:before { font-family: "FontAwesome"; content: '\f0d9 '; } [dir='rtl'] .slick-prev:before { content: '>'; } .slick-next { right: -20px; } [dir='rtl'] .slick-next { right: auto; left: -25px; } .slick-next:before { font-family: "FontAwesome"; content: '\f0da'; } [dir='rtl'] .slick-next:before { content: '>'; } /* Dots */ .slick-dotted.slick-slider { margin-bottom: 30px; } .slick-dots { position: absolute; bottom: -25px; display: block; width: 100%; padding: 0; margin: 0; list-style: none; text-align: center; } .slick-dots li { position: relative; display: inline-block; width: 20px; height: 20px; margin: 0 5px; padding: 0; cursor: pointer; } .slick-dots li button { font-size: 0; line-height: 0; display: block; width: 20px; height: 20px; padding: 5px; cursor: pointer; color: transparent; border: 0; outline: none; background: transparent; } .slick-dots li button:hover, .slick-dots li button:focus { outline: none; } .slick-dots li button:hover:before, .slick-dots li button:focus:before { opacity: 1; } .slick-dots li button:before { font-family: 'slick'; font-size: 6px; line-height: 20px; position: absolute; top: 0; left: 0; width: 20px; height: 20px; content: '•'; text-align: center; opacity: .25; color: black; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .slick-dots li.slick-active button:before { opacity: .75; color: black; } @media (max-width: 480px){ .customer-logos { margin: 0px 0px; width: 100%; } .slick-slide { margin: 0px 2px; } .slick-next { right: 1px; } .slick-prev { left: 1px; } }
$(document).ready(function(){ $('.customer-logos').slick({ slidesToShow: 5, slidesToScroll: 1, autoplay: true, autoplaySpeed: 1500, arrows: true, dots: false, pauseOnHover: true, responsive: [{ breakpoint: 768, settings: { slidesToShow: 4 } }, { breakpoint: 520, settings: { slidesToShow: 2 } }] }); });

Related: See More


Questions / Comments: