Jump to content

get carousel to auto scroll then pause on hover

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Site URL: https://regrowthkyliewalsh.com/navigate2025

Hello, 

We are looking for someone to help with the auto scroll on the carousel on this page: https://regrowthkyliewalsh.com/navigate2025

Essentially, we know we have to do this in the code injection area, but do not know the correct script and/or information to use.

Currently, there are arrows there to manually scroll through, but we would like this to infinitely scroll to the next image after 3 seconds, until the user hovers.

If any one can point us in the right direction - we would be greatly appreciative.

  • Replies 1
  • Views 625
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted

If you want this only "infinitely scroll to the next image after 3 seconds"

You can use this code to Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
	setInterval(function(){ 
	$('section[data-section-id="66ea717d319a120b86d5125c"] button.user-items-list-carousel__arrow-button.user-items-list-carousel__arrow-button--right').click()
	},3000);
})
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

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


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