Jump to content

Image Block Hover Overlay Fluid Engine

Go to solution Solved by Ziggy,

Recommended Posts

  • Solution

Add this to your Custom CSS:

.sqs-image-content {
  opacity:1;
  transition:ease-in-out 300ms;
  &:hover {
    opacity:0.6;
  }
}

Adjust the opacity 0.6 to any value between 0 and 1.

Hope that's what you're looking for! Give me a thumbs up if you can, thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
🔌
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

Link to comment
  • 1 month later...
14 hours ago, lawilson97 said:

Any way to make the image go lighter rather than darker?

The effect is for opacity, so will go lighter or darker depending on the underlying color, likely the section background.

You could use this instead:

.sqs-image-content {
  filter:brightness(1);
  transition:ease-in-out 300ms;
  &:hover {
    filter:brightness(0.5);
  }
}

Let me know if you prefer that.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
🔌
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

Link to comment
On 2/19/2023 at 1:13 AM, Ziggy said:

The effect is for opacity, so will go lighter or darker depending on the underlying color, likely the section background.

You could use this instead:

.sqs-image-content {
  filter:brightness(1);
  transition:ease-in-out 300ms;
  &:hover {
    filter:brightness(0.5);
  }
}

Let me know if you prefer that.

This is the one I ended up using:

img {
  -webkit-transition: all 0.1s ease;
  transition: all 0.5s ease;
}
.gallery-grid-item img:hover {
filter: brightness(109%)
}

It works really well as I needed it to work on the gallery block. Thanks so much though!

Link to comment
9 minutes ago, lawilson97 said:

Thanks so much though!

Not a problem! Could you give my post a thumbs up and mark it as the solution? Thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
🔌
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

Link to comment
  • 4 weeks later...
On 3/21/2023 at 7:39 AM, jjk291 said:

Hi!! sorry to bump this, is there a way to apply this effect to only images that are links? 

Try this new code. If it doesn't work, please share link to page where you use image, we can check easier

.sqs-image-content a {
  opacity:1;
  transition:ease-in-out 300ms;
  &:hover {
    opacity:0.6;
  }
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.