Is there a js plugin to make such a slider and when you click on the slide, the picture enlarges and works like a gallery?

  • 0
    JavaScript Anonymous, May 2, 2020

  • 2 Answers
  • 0
    2 separate scripts, one for the slider (like swiper), the other for the lightbox with gallery (like fancybox).



    <div class="swiper-container">
    <!-- блок слайдера-->
    <div class="swiper-wrapper">
    <div class="swiper-slide">
    <a href="image1.jpg" class="lightbox">
    <!-- на ссылку вешаем скрипт лайтбокса -->
    <img src="thumbnail1.jpg" alt="">
    </a>
    </div>
    <div class="swiper-slide">
    <a href="image2.jpg" class="lightbox">
    <img src="thumbnail2.jpg" alt="">
    </a>
    </div>
    </div>
    </div>
    Anonymous

  • 0
    Slider
    - https://owlcarousel2.github.io/OwlCarousel2/ < br />


    Clicking on the slide enlarged the picture
    - https://photoswipe.com/
    Genevieve Dixon

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!