Jump to content

Automatic Slideshow Wells for Desktop & Mobile

Recommended Posts

Hey gang,

I am building a website using the Wells template see link here https://helix-chicory-pegn.squarespace.com or live version https://murroninteriors.com/

I would like to make the slideshow gallery automatically slide / fade through the images. Does anyone know a useful bit of code I can add? 

Also, I would like the same format on the mobile version, currently it stacks all of the images on top of each other.

Any help would be greatly appreciated! Also, whats with Squarespace removing all the great content on Squarespace Answers forum?

 

Thanks guys!

 

 

Link to comment
  • Replies 4
  • Views 989
  • Created
  • Last Reply

You can achieve this using the built in Gallery block

https://support.squarespace.com/hc/en-us/articles/206543407-Gallery-Blocks

Link to comment

There's probably a more elegant way of doing this, but the following should get you there

@media only screen and (max-width: 640px) {
	.homepage #block-yui_3_17_2_1_1572010646013_3853 {	
		.slide img {
			height: 400px !important;
			width: 600px !important;
			left: -100px !important;
		}
	}
}

Play with the height and width, but keep the aspect ratio correct. 

Use the left setting to get the center of the images in view. 

NB. This only really works if all images have the same aspect ratio. Otherwise images will get stretched. For this reason you should put all your images (including portrait ones) on a 3:2 aspect ratio canvas. 

Link to comment
  • 4 months later...

Archived

This topic is now archived and is closed to further replies.

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