Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
gamercj

Auto-scroll Gallery (Type - Slideshow:Reel)

Question

Hey, everyone!

I have a Squarespace 7.1 site and I'm having an issue.

I have a gallery block which I have set to "slideshow:reel" gallery type. I want the images to autoplay (which was a feature available in previous versions). I've tried the code injection from this thread, but I haven't had any luck getting it to work: 
https://forum.squarespace.com/topic/26409-summary-block-how-can-i-set-the-carousel-to-autoplay/

How can I get this gallery to autoplay/auto-scroll? 

Thank you!
 

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0
2 hours ago, christialisha said:

Any word on this? I am also searching. 

Thanks in advance for anyone who may be able to help!

If you share link to gallery reel page, we can check easier.


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0

I managed to write a code using Jquery. It's not to most elegant way,  basically its made to click the next arrow in the slideshow every couple of seconds:
 

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>

<script>
  const init = () => {
    setInterval(() => {
    	$('.gallery-reel-control [aria-label="Next Slide"]').trigger('click');
    }, 6000); // change this value to change the speed
  }
  
  document.addEventListener('DOMContentLoaded', init);
     
</script>

You can insert this into Code Injection or in to the Advanced section of the specific page the Slideshow is on.

I haven't tested if this works on any other gallery types by the way.

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...