Autoplay on scroll
-
Hi,
I would like the autoplay to be activated when scrolling down to the carousel, and not on loading the page.I have customize javascript on my child-theme, but doesn’t work. I’ve noticed ‘false’ instruction works but ‘true’ doesn’t. Nor if I take it out of the waypoint function.
Any idea would be appreciated.
Thanks in advance.jQuery(".wcp-slick").data('autoplay',false); var waypoint = new Waypoint({ element: document.getElementsByClassName('wcp-slick'), handler: function(direction) { jQuery(".wcp-slick").data('autoplay',true); console.log("Waypoint"); } })
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Autoplay on scroll’ is closed to new replies.