Jump to content

Hover effect on images only not text

Recommended Posts

Bedford template.

I’m using image blocks that have the overlap, collage, and card design applied to them.

I found this code that makes the whole thing grayscale and when you hover, it goes back to color.

However, I only want this affect to be applied on the images and not the headers, subtitles, and buttons.

.image-block {
 transition: filter .3s ease-in-out;
 filter: grayscale(100%);

.image-block:hover {
 filter: grayscale(0%);

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


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.