Jump to content

awcs

Member
  • Posts

    4
  • Joined

  • Last visited

Reputation Activity

  1. Like
    awcs reacted to Rebecca_Grace_Designs in Auto Scroll Carousel Block Squarespace 7.1   
    **UPDATED***
    For anyone still looking, I found a workaround for autoplaying a Summary Carousel Block. It autoclicks the next button every three seconds. 

    Inject this is Settings > Advanced > Code Injection > Footer
    <script>
    window.onload = function() {
      var nextArrow = document.querySelector(".summary-carousel-pager-next");
      
      function clickNext() {
        nextArrow.click();
      }
     
      setInterval(clickNext, 3000);
    };
    </script>

    I updated this code to remove the use of JQuery (for page speed reasons) as well as to help with the refresh timeframe.
×
×
  • 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.