Jump to content

Brian_Bers

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Brian_Bers

  1. This one

    On 9/18/2020 at 4:51 PM, rebeccagracedesigns said:

    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 > Header

    <!-- jQuery Library -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

     

    and this in Settings > Advanced > Code Injection > Footer



    <!-- Summary Block Autoplay -->
    <script>
          setInterval(click, 3000);
          function click()
          {
            $(".summary-carousel-pager-next").click();
          }
    </script>


    I will probably add this to my blog!!

  2. On 11/13/2020 at 10:24 AM, gabrielamadeus said:

    Curious if there's anyway to loop this autoplay function? Similar to how the native autoplay gallery works in squarespace. I've got 10ish featured posts in a carousel that autoplays/scrolls on my homepage, but it's usually finished advancing and static by the time users scroll down to it: 

    https://oregontimbertrail.org/

    Thanks in advance! 

    (also hiding the next/prev arrows would be nifty too but not a deal breaker) 

    Bump. Looking for the same thing!

    It appears that this script does in fact "reset" after sitting on the last display group for ~25 seconds regardless of the click time interval. But that's much too long for my and most applications, I would think. Possible to modify this behavior?

×
×
  • 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.