AutoScroll trigger with jQuery | WordPress.org

[ad_1]

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.

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

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

Perfect, thank you, very kind!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer