• Resolved ayottepl

    (@ayottepl)


    Good afternoon!

    I’ve search all around but i can’t find the info i’m looking for (i’ve also try a few things on my own but it doesn’t work).

    Is there any event i can use with your carousel to start it manually ? The way it works on our website right now is that the carousel is only on mobile, not desktop. So i can’t use the auto play function in the admin area.

    I tried to change the value of data-autoplay on mobile via jQuery but it doesn’t make it start.

    You probably understand how it works better than me! ??

    Thanks for your help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author nK

    (@nko)

    Hey.

    You can use the Swiper API to start or stop autoplay. The Swiper object is available on the carousel element.

    Code example:

    document.querySelector('.ghostkit-carousel').swiper.autoplay.stop();
    
    document.querySelector('.ghostkit-carousel').swiper.autoplay.start()

    Regards, nK.

Viewing 1 replies (of 1 total)
  • The topic ‘Carousel events’ is closed to new replies.