Jump to content

Autoplay on carousel

Recommended Posts

Posted

Hello I am using this code to get my carousel blog posts to auto play

<!-- Summary Block Autoplay -->
<script>
window.onload = function() {
  var nextArrow = document.querySelector(".summary-carousel-pager-next");
  
  function clickNext() {
    nextArrow.click();
  }
 
  setInterval(clickNext, 5000);
};
</script>

It will only auto play the first one, is there anything i can do to make it auto play more than one on the same page?

  • Replies 3
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

For sure!

So I have 2 Carousels on one page 1 above the other, but only the TOP page one plays through the one a bit further down does not switch through the pages - the guides one shifts through, the news and updates does not

image.png.0446943ec6d156be95ca36f95449656e.png 

image.png

Posted
On 10/3/2023 at 11:49 PM, Ruinir said:

For sure!

So I have 2 Carousels on one page 1 above the other, but only the TOP page one plays through the one a bit further down does not switch through the pages - the guides one shifts through, the news and updates does not

image.png.0446943ec6d156be95ca36f95449656e.png 

image.png

Can you share link to this page?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.