Open in certain photo, Slick Carousel

Asked

Viewed 80 times

1

It is possible that when opening the slick carousel, given photo is in focus? some kind of index mapping or even by name, if not, there is some other slide drag and drop What does it do? example...

  <div class="your-class">
    <img src="img1">
    <img src="img2"> <!-- abrir aqui -->
    <img src="img3">
  </div>

   $(document).ready(function(){
      $('.your-class').slick({
        setting-name: setting-value
      });
    });

1 answer

1


Use the property initialSlide to configure which slide to start.

Also note the library documentation: Documentation

  • I consulted the documentation, but this method went unnoticed, thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.