<div class="tabs-wrapper">
<div class="tabs tabs-slider">
<a class="tab tab--active" href="#history-tab-1">1983-1992</a>
<a class="tab" href="#history-tab-2">2013-2015</a>
<a class="tab" href="#history-tab-3">2015</a>
<a class="tab" href="#history-tab-4">2018</a>
<a class="tab" href="#history-tab-5">2018</a>
<a class="tab" href="#history-tab-6">2019</a>
<a class="tab" href="#history-tab-7">2020</a>
</div>
<div class="tabs-container">
<div id="history-tab-1" class="tabs-content tabs-content--active">
<div class="tabs-content__inner">
<div class="tabs-content__descr">
<h5 class="tabs-content__descr-title">
1983-1992: первый проект завода
</h5>
<div class="tabs-content__descr-text">
<p>
"текст"
</p>
<p>
"текст"
</p>
</div>
</div>
<div class="tabs-content__img">
<img src="images/tabs-content__img.jpg" alt="">
</div>
</div>
</div>
<div id="history-tab-2" class="tabs-content">
<div class="tabs-content__inner">
<div class="tabs-content__descr">
<h5 class="tabs-content__descr-title">
2013-2015: . . . . . . . .
</h5>
<div class="tabs-content__descr-text">
<p>
"текст"
</p>
<p>
"текст"
</p>
</div>
</div>
<img class="tabs-content__img" src="images/tabs-content__img.jpg" alt="">
</div>
</div>
<div id="history-tab-3" class="tabs-content">
<div class="tabs-content__inner">
<div class="tabs-content__descr">
<h5 class="tabs-content__descr-title">
2015: . . . . . . . .
</h5>
<div class="tabs-content__descr-text">
<p>
"текст"
</p>
<p>
"текст"
</p>
</div>
</div>
<img class="tabs-content__img" src="images/tabs-content__img.jpg" alt="">
</div>
</div>
<div id="history-tab-4" class="tabs-content">
<div class="tabs-content__inner">
<div class="tabs-content__descr">
<h5 class="tabs-content__descr-title">
2018: . . . . . . . .
</h5>
<div class="tabs-content__descr-text">
<p>
"текст"
</p>
<p>
"текст"
</p>
</div>
</div>
<img class="tabs-content__img" src="images/tabs-content__img.jpg" alt="">
</div>
</div>
<div id="history-tab-5" class="tabs-content">
<div class="tabs-content__inner">
<div class="tabs-content__descr">
<h5 class="tabs-content__descr-title">
2018: . . . . . . . .
</h5>
<div class="tabs-content__descr-text">
<p>
"текст"
</p>
<p>
"текст"
</p>
</div>
</div>
<img class="tabs-content__img" src="images/tabs-content__img.jpg" alt="">
</div>
</div>
<div id="history-tab-6" class="tabs-content">
<div class="tabs-content__inner">
<div class="tabs-content__descr">
<h5 class="tabs-content__descr-title">
2019: . . . . . . . .
</h5>
<div class="tabs-content__descr-text">
<p>
"текст"
</p>
<p>
"текст"
</p>
</div>
</div>
<img class="tabs-content__img" src="images/tabs-content__img.jpg" alt="">
</div>
</div>
<div id="history-tab-7" class="tabs-content">
<div class="tabs-content__inner">
<div class="tabs-content__descr">
<h5 class="tabs-content__descr-title">
2020: . . . . . . . .
</h5>
<div class="tabs-content__descr-text">
<p>
"текст"
</p>
<p>
"текст"
</p>
</div>
</div>
<img class="tabs-content__img" src="images/tabs-content__img.jpg" alt="">
</div>
</div>
</div>
</div>
$('.tab').on('click', function(e) {
e.preventDefault();
$($(this).siblings()).removeClass('tab--active');
$($(this).parent().siblings().find('div')).removeClass('tabs-content--active');
$(this).addClass('tab--active');
$($(this).attr('href')).addClass('tabs-content--active');
});
$(window).on('load resize', function() {
if (screen.width <= 990) {
$('.tabs-slider').slick({
slidesToShow: 6,
slidesToScroll: 1,
arrows: true,
infinite: true,
fade: true,
prevArrow: '<button class="tabs-slider__btn tabs-slider__btn-prev slick-arrow"><svg width="10" height="8" viewBox="0 0 10 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="..." fill="#23274B"/></svg></button >',
nextArrow: '<button class="tabs-slider__btn tabs-slider__btn-next slick-arrow"><svg width="10" height="8" viewBox="0 0 10 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="..." fill="#23274B"/></svg></button>',
});
} else {
$('.tabs-slider').slick('unslick');
}
});