https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js
by l2banners
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.css">
<div class="about__slider">
<div class="about__item" style="background-image: url(https://bipbap.ru/wp-content/uploads/2017/04/priroda_kartinki_foto_03.jpg);">
<div class="about__col">
<p class="about__desc">title</p>
<div class="about__arrows"><button class="about__arrow about__arrow--dir_right"></button></div>
</div>
</div>
<div class="about__item" style="background-image: url(https://i.ibb.co/WFD1cF2/field-of-poppies-mini.jpg);">
<div class="about__col">
<p class="about__desc">title 2.</p>
<div class="about__arrows"><button class="about__arrow about__arrow--dir_right"></button></div>
</div>
</div>
</div><!--end about__slider-->
CSS
.about__slider {
height: 100%;
min-height: 730px;
}
.about__slider .slick-track,
.about__slider .slick-list {
height: 100%;
}
.about__slider .slick-slide {
display: flex;
}
.about__item {
display: flex;
align-items: flex-end;
height: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
outline: none;
padding-bottom: 102px;
min-height: 730px;
}
.about__col {
display: flex;
justify-content: space-between;
background-color: #fff;
padding: 24px 30px;
margin: 0 30px;
}
.about__desc {
font-size: 24px;
line-height: 1.5;
color: #333333;
}
.about__arrows {
display: flex;
}
.about__arrow {
position: relative;
display: block;
cursor: pointer;
outline: none;
border: none;
background-color: transparent;
width: 30px;
height: 30px;
padding: 0px;
}
.about__arrow:after {
position: absolute;
content: ' ';
width: 16px;
height: 16px;
top: calc(50% - 8px);
left: calc(50% - 4px);
border-left: 4px solid #4c9977;
border-top: 4px solid #4c9977;
transform: rotate(-45deg);
transition: 0.3s border;
}
.about__arrow--dir_right {
transform: scaleX(-1);
}
.about__arrow--dir_left {
display: none;
}
JavaScript
let about = $('.about__slider');
about.slick({
infinite: true,
slidesToShow: 1,
fade: false,
arrows: false,
dots: false,
});
$('.about__arrow--dir_right').on('click', function () {
$('.about__slider').slick('slickNext');
});