<script src="https://code.jquery.com/jquery-2.2.0.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<div class="container">
<h2>Our Partners</h2>
<section class="customer-logos slider">
<div class="slide"><a href="#"><img src="https://i.ibb.co/ZNL9YPZ/logo-1.png"></a></div>
<div class="slide"><a href="#"><img src="https://i.ibb.co/Xb5xfYC/logo-2.png"></a></div>
<div class="slide"><a href="#"><img src="https://i.ibb.co/yV1Zsm1/logo-3.png"></a></div>
<div class="slide"><a href="#"><img src="https://i.ibb.co/mbnXzfH/logo-4.png"></a></div>
<div class="slide"><a href="#"><img src="https://i.ibb.co/ZHm7LKV/logo-5.png"></a></div>
<div class="slide"><a href="#"><img src="https://i.ibb.co/GMtqzgW/logo-6.png"></a></div>
<!--<div class="slide"><a href="#"><img src="https://i.ibb.co/3B1CshX/logo-7.png"></a></div>-->
<!--<div class="slide"><a href="#"><img src="https://i.ibb.co/BGnXZCF/logo-8.png"></a></div>-->
</section>
</div>
h2{
text-align:center;
padding: 20px;
}
/* Slider */
.slick-slide {
margin: 0px 20px;
}
.slick-slide:not(.slick-active) {
position: relative;
}
.slick-slide:not(.slick-active):after {
position: absolute;
display: block;
width: 100%;
height: 100%;
background: radial-gradient(rgba(255,255,255,1), rgba(255,255,255, .5));
content: '';
top: 0;
}
.customer-logos {
margin: -30px 0;
}
.slick-track{
padding: 30px 0;
}
.slick-slide img {
width: 100%;
max-width: 100px;
transition: .5s ease all;
}
.slick-slide a:hover img {
transform: scale(1.5);
}
.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: hidden;
}
.slick-slide
{
display: none;
float: left;
height: 100%;
min-height: 1px;
}
[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: none;
}
.slick-arrow {
position: absolute;
top: 100%;
}
.slick-arrow.slick-prev {
left: 25%;
}
.slick-arrow.slick-next {
right: 25%;
}
$(document).ready(function(){
$('.customer-logos').slick({
slidesToShow: 6,
slidesToScroll: 1,
autoplay: false,
autoplaySpeed: 1500,
arrows: true,
dots: false,
pauseOnHover: false,
infinite: true,
responsive: [{
breakpoint: 768,
settings: {
slidesToShow: 4
}
}, {
breakpoint: 520,
settings: {
slidesToShow: 3
}
}]
});
});
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.