Jump to content

Auto Scroll Logo Block on 7.1

Recommended Posts

Site URL: https://tyres-assist.squarespace.com/

Hi all, James form Outlast Creative again,

I was wondering if one of you lovely people can help me with adding an auto scroll to a carousel on the homepage of my newest site I'm building for a garage. The logos are of Car makes and I wanted them to sit under the hero in an auto scrolling fashion.

Password to the site is: testy

Link to comment
1 hour ago, Outlast-Creative said:

Site URL: https://tyres-assist.squarespace.com/

Hi all, James form Outlast Creative again,

I was wondering if one of you lovely people can help me with adding an auto scroll to a carousel on the homepage of my newest site I'm building for a garage. The logos are of Car makes and I wanted them to sit under the hero in an auto scrolling fashion.

Password to the site is: testy

Try adding to Home > Settings > Advanced > Code Injection, choose footer

<script>
	(function docReady(fn) {
	// see if DOM is already available
	if (document.readyState === "complete" || document.readyState === "interactive") {
		// call on next available tick
		setTimeout(fn, 1);
	} else {
		document.addEventListener("DOMContentLoaded", fn);
	}
})(() => {
	if (window.location == window.parent.location) {
		const reelControls = document.querySelectorAll('[aria-label*="Next"]');
		reelControls.forEach(reelControl => {
			(function reelTimer() {
				setTimeout(() => {
					reelControl.click();
					reelTimer();
				}, 2000); // change this value to change the speed
			})();
		})
	}
});
</script>

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing result

 

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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

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.