Jump to content

Rebecca_Grace_Designs

Circle Member
  • Posts

    31
  • Joined

  • Last visited

Community Answers

  1. Rebecca_Grace_Designs's post in Auto Scroll Carousel Block Squarespace 7.1 was marked as the answer   
    **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.