0
I’m mounting a Slick Slider with 4 images, however, it loads all images on screen and does not autoplay Slick alone.
JS:
$('.single-item').slick({
slidesToShow: 4,
  slidesToScroll: 1,
  autoplay: true,
  autoplaySpeed: 2000,
  responsive: 
  [
  {
      breakpoint: 600,
      settings: {
          infinite: true,
          arrows: true,
          slidesToShow: 2
      }
  },
  {
      breakpoint: 480,
      settings: {
          infinite: true,
          arrows: true,
          slidesToShow: 1
      }
  }
  ]
  });
HTML:
<div class="single-item logos col-12">
 <div class="logo"><img src="<?php echo INCLUDE_PATH; ?>/images/site/bradesco.png" alt="">
 </div>
 <div class="logo"><img src="<?php echo INCLUDE_PATH; ?>/images/site/ole.png" alt="">
 </div>
  <div class="logo"><img src="<?php echo INCLUDE_PATH; ?>/images/site/pan.png" alt="">
  </div>
  <div class="logo"><img src="<?php echo INCLUDE_PATH; ?>/images/site/banrisul.jpg" alt="">
  </div>
  <div class="logo"><img src="<?php echo INCLUDE_PATH; ?>/images/site/itau.png" alt="">
  </div>
  <div class="logo"><img src="<?php echo INCLUDE_PATH; ?>/images/site/safra.png" alt="">
  </div>
  <div class="logo"><img src="<?php echo INCLUDE_PATH; ?>/images/site/votorantim.png" alt="">
  </div>
  <div class="logo"><img src="<?php echo INCLUDE_PATH; ?>/images/site/bic.png" alt="">
  </div>
  </div>
  </div>
  </div>
CSS:
.logos{
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap
}
.logos .logo{
height: 150px;
background-size: cover !important
}
.logos .logo img {
height: 100px;
width: 150px
}
						
That was right, missed calling the plugin in the initial DOM loading, I really appreciate!
– Gabriel Henrique