-3

How can I insert an animation code here so that the images will rotate in a carousel?

var swiper = new Swiper(".mySwiper", {
    slidesPerView: 5,
    spaceBetween: 10, 
    breakpoints: {
      0: { slidesPerView: 1.2 },
      640: { slidesPerView: 2.2 }, 
      1024: { slidesPerView: 5 } 
    },
    pagination: {
      el: ".swiper-pagination",
      clickable: true,
    }
  });

3
  • 2
    What's the use of this code snippet? First, it is not html as it is marked. The snippet just shows its source code. For a working snippet, use HTML + JavaScript (+CSS). Commented yesterday
  • Perhaps ,autoplay: { delay: 2000, pauseOnMouseEnter: true }, loop: true, Commented 14 hours ago
  • Is this what you meant? jsfiddle.net/mplungjan/rqgbjwpv Commented 14 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.