Jump to content

Zoom In on Image Hover (Portfolio Grid)

Recommended Posts

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

Link to comment
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

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
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);
				}
			}
		}
	}
}

 

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

 

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.