【jQuery】Technique to enlarge only the center image of slider (slick) by scale/Slick center slider bigger than others | Demo page

※Please check using Developer tools

Commentary

Sponsored links

CSS

.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;
  }
}

@keyframes close {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
  

JavaScript

$(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'
  });
});