※デベロッパーツール等でソースコードをご確認ください(Please check using Developer tools)
.block {
overflow: hidden;
margin: 100px auto 0;
}
.slider img {
transform: scale(0.8);
opacity: 0.3;
transition: 0.5s;
}
.slider .slick-center img {
transform: scale(1);
opacity: 1;
}
.text li {
opacity: 0;
text-align: center;
animation-delay: 0.5s;
animation-duration: 1.0s;
animation-fill-mode: both;
}
.text li.slick-active {
animation-name: open;
}
@keyframes open {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
$(function() {
$('.slider').slick({
autoplay: true,
dots: true,
centerMode: true,
slidesToShow: 5,
pauseOnFocus: false,
pauseOnHover: false,
asNavFor: '.text',
responsive: [{
breakpoint: 768,
settings: {
slidesToShow: 1,
centerPadding: 0,
fade: true
}
}]
});
$('.text').slick({
slidesToShow: 1,
fade: true,
asNavFor: '.slider'
});
});