Jump to content

slideshow: reel animation

Recommended Posts

I'm having an issue with updating a site to 7.1 

This is simple site it used to have an animated crawl of logos I could drop down in the bottom of this page and show the different companies they work with. I have tried Slideshow and images to get the same effect.. they are either too large or won't animate. The current version is using the arrows to manually scroll through (client doesn't like that) and it doesn't like mobile. 

I have attached some screen grabs and a url. 

https://www.pegasusok.com/

Just need these to slide or move across the screen - show 3 at a time and move through the 25 different logos I have, It could scale down on mobile or switch to just a single image.. but I don't believe we are doing totally different blocks in a mobile yet. 

Thoughts? seems like a simple thing, but not finding anyone posting CSS - one youtube with the college logos, but he is using HTML with it too and that seems like an odd hack. 

anyway would appreciate any thoughts. 

Thanks
Marc

Screenshot 2022-11-08 at 3.48.37 PM.png

Screenshot 2022-11-08 at 3.48.29 PM.png

Link to comment
  • Replies 2
  • Views 905
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi,

You want Reel Autoscroll + Resize it on mobile?

To resize, add this to Design > Custom CSS > Then save & reload the site

/* Reels on mobile */
@media screen and (max-width:767px) {
.gallery-reel {
    height: 20vh !important;
}
}

To make it autoscroll, add this to Settings > Advanced > Code Injection > 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('.gallery-reel-control [data-next]');
		reelControls.forEach(reelControl => {
			(function reelTimer() {
				setTimeout(() => {
					reelControl.click();
					reelTimer();
				}, 2000); // change this value to change the speed
			})();
		})
	}
});
</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!)

Link to comment
  • 2 weeks later...

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.