Jump to content

Zoom In on Image Hover (Portfolio Grid)

Recommended Posts

Posted

Hey everyone!

I've been trying to apply the attached code (using the .grid-item class) to an image/link that's inside of a Portfolio Grid for the past hour.  😑 

Is this possible?

 

.gallery-grid-item 
img:hover
{height:100%!important; 
  width:100%!important; 
  transform:Scale(1.2); 
  overflow:hidden!important; 
  transition-duration:1s} 
.gallery-grid-item 
{overflow:hidden!important}

 

Screen Shot 2021-09-30 at 5.35.58 PM.png

Screen Shot 2021-09-30 at 5.49.50 PM.png

  • Replies 4
  • Views 1.2k
  • Created
  • Last Reply
Posted
59 minutes ago, Krys23 said:

Hey everyone!

I've been trying to apply the attached code (using the .grid-item class) to an image/link that's inside of a Portfolio Grid for the past hour.  😑 

Is this possible?

 

.gallery-grid-item 
img:hover
{height:100%!important; 
  width:100%!important; 
  transform:Scale(1.2); 
  overflow:hidden!important; 
  transition-duration:1s} 
.gallery-grid-item 
{overflow:hidden!important}

 

Screen Shot 2021-09-30 at 5.35.58 PM.png

Screen Shot 2021-09-30 at 5.49.50 PM.png

Can you share your url with protected password

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
4 hours ago, Krys23 said:

https://ellipsoid-sheep-a8d9.squarespace.com/

password: website1

thank you!

Try in Design > Custom Css

section[data-section-id="6153b69fd17b870f6ac9ffed"] {
	.grid-item {
		.grid-image-inner-wrapper {
			img {
				transition: transform 1s;
			}
		}
		&:hover {
			.grid-image-inner-wrapper {
				img {
					transform: scale(1.5);
				}
			}
		}
	}
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
6 hours ago, bangank36 said:

Try in Design > Custom Css

section[data-section-id="6153b69fd17b870f6ac9ffed"] {
	.grid-item {
		.grid-image-inner-wrapper {
			img {
				transition: transform 1s;
			}
		}
		&:hover {
			.grid-image-inner-wrapper {
				img {
					transform: scale(1.5);
				}
			}
		}
	}
}

 

Works perfectly, thank you so much.

 

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.