• Resolved fritzimo

    (@fritzimo)


    Hello, I want to start and stop the Splide Carousel with autoScroll using jQuery. But I can’t find any code anywhere that I could use.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Jensen

    (@dkjensen)

    Hello

    By default Splide will give an ID to each carousel, something like:

    splide01Carousel

    splide02Carousel

    splide03Carousel

    etc. Unless you specifically specify an HTML Anchor on the Splide Carousel Block.

    Use this to control your AutoScroll.

    e.g.:

    splide01Carousel.Components.AutoScroll.pause();

    and

    splide01Carousel.Components.AutoScroll.play();

    If you have specified your own HTML Anchor on the block, it will be:

    yourhtmlanchorCarousel.Components.AutoScroll.pause();

    Hope this helps, let me know if you need further help.

    Plugin Author David Jensen

    (@dkjensen)

    I have made a sample page so you can view the markup here:

    https://splide-demo.cloudcatch.io/autoscroll-test/

    Thread Starter fritzimo

    (@fritzimo)

    Perfect, thank you, very kind!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AutoScroll trigger with jQuery’ is closed to new replies.