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

How to make gallery carousel into a continuous/infinite loop?


Insider

Question

Hi all,

I'd like to know if it's possible to have a gallery carousel run in an infinite loop so that after the last image, it continues scrolling in the right direction starting at the first image again. Ideally this would apply to all gallery carousels but if too difficult, just on blog posts would be great also.

Can this be solved with coding?

https://projectsinsider.com/project/3-rubida-court-endeavour-hills

lifeisgood

Cheers.

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

Try adding to Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
	setInterval(function(){ 
	$('a.next[aria-label="Next Slide"]').click()
	},2000);
})
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0
On 9/5/2021 at 11:53 AM, tuanphan said:

Try adding to Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
	setInterval(function(){ 
	$('a.next[aria-label="Next Slide"]').click()
	},2000);
})
</script>

 

After the last slide, the next click still goes back to the first image going the left direction. I was hoping for the right direction.

Thank you for trying @tuanphan!

Edited by Insider
Link to comment

Create an account or sign in to comment

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


×
×
  • Create New...