Squarespace CSS Trick: Faded to Full Color Hover/Rollover Effect for Images

 

Sign up for a free Squarespace trial here! #afflink

Squarespace CSS Trick Faded to Full Color HoverRollover Effect for Images.png

Personally, I really enjoy mouse hover / rollover effects on websites. It stimulates a part of my brain like some tech-era adult version of peek-a-boo.

Recently as I was designing a new website for a client that featured many photo galleries, I wanted a way to make the thumbnails stand out in gallery view. My client wanted an overall cloudy/airy/opaque look for the site, so I hopped into conversation yet again with my Developer friend Elise (over at Websites By Elise).

It took a few exchanges to pinpoint exactly what I wanted to achieve for the grid-style galleries, but we eventually figured it out.

You know the faded/opaque look you sometimes get when you rollover images on Squarespace websites? This is essentially the reverse of that.

Here is an example of the effect I’m referring to, in action. Notice how the images are more opaque, then when you rollover with your mouse, they enhance to full color. The same effect is being used here, too.

Looks nice, doesn’t it? Here’s how to add it to a Squarespace website (thanks to Elise!):


Opaque to full color Squarespace image hover effect

First, decide which type of image you’re wanting to assign the effect to— regular image blocks, galleries, thumbnails— then paste the corresponding CSS below into Custom CSS by going to Design > Custom CSS in the left dashboard menu of your site. Simple as that!

The following css is specifically for grid gallery thumbnails within blog posts:

/*causes grid gallery thumbnails on blog posts to transition from 50% opacity to 100% opacity on hover*/
.Main.Main--blog-item {
  .gallery-block {
    img {
      opacity: .5 !important;
      filter: none !important;
    }
   
    img:hover {
      opacity: 1 !important;
    }
  }
}

The following css is specifically for summary blocks:

.summary-block {

    img {
      opacity: .5;

transition: .3s ease;
    }
   
    img:hover {
      opacity: 1;
    }
  }

The following css is specifically for gallery blocks:

.gallery-block {

    img {
      opacity: .5;

transition: .3s ease;
    }
   
    img:hover {
      opacity: 1;
    }
  }

The following css is specifically for single image blocks:

.image-block {
    img {
      opacity: .5;

transition: .3s ease;
    }
   
    img:hover {
      opacity: 1;
    }
  }


disclaimer

If this code doesn’t work for you, it’s likely due to a discrepancy with the particular Squarespace template (or version) you’re using. If the above CSS selectors don’t work for you, replace with the following respectively:

  • .summary-v2-block

  • .gallery-v2-block

  • .image-v2-block



Hopefully this has been helpful! Let us know in the comments if you have any questions and we’ll do our best to respond!

Thanks for stopping by~

x
Tiffany

 
 

Welcome!

Tiffany Davidson Squarespace Web Designer Squarespace SEO Expert

Hey there! I’m Tiffany ~ a Squarespace Web Designer & SEO Expert. I design beautiful & professional websites that rank well on Google, & I teach courses on becoming a Squarespace SEO Expert, Monetizing Squarespace, and Starting Your Own Squarespace Design Business!


Feel free to contact me at: tiffany@tiffany-davidson.com

Sign up for a free Squarespace trial here! #afflink


My Courses:

Squarespace SEO Expert Course
$267.00

Learn how to get your Squarespace website (or any Squarespace website) to Google Page 1 using organic SEO techniques!

As a Squarespace Designer & SEO Expert, I know the methodology for truly getting Squarespace websites to rank on Google Page 1, and I’m going to teach it to you!

This course is a self-guided lifetime-access course, so you can go at your own preferred pace and keep it as a resource to return to time and time again.

Learn More —>

Please note: This course was created using Squarespace version 7.0. The same principles will still apply with version 7.1, but the overall user interface will look slightly different. Due to the inherent nature of digital products, refunds are strictly prohibited once purchase has been made. Please also note the course cost is $267 in USD currency.

Course: How To Monetize Your Squarespace Website
$147.00

Can you monetize a Squarespace website? Yes, you can. And I’ll teach you how.

Did you know your Squarespace website could be making money for you, even while you sleep, work your day job, or travel?

In this course, which includes over 3 hours of video instruction, I’ll teach you how to use SEO blogging to drive traffic to your site, and then how to monetize those visits.

Learn More —>

Please note: This course was created using Squarespace version 7.0. The same principles will still apply with version 7.1, but the overall user interface will look slightly different. Due to the inherent nature of digital products, refunds are strictly prohibited once purchase has been made. Please also note the course cost is in USD currency.

Course: How to Start a Squarespace Design Business
$163.00

Learn how to turn your basic design knowledge into a functional and successful business!

In this course, I outline the procedures I use to run my Squarespace design business which continues to grow in revenue every single year and has given me wonderful freedom to not only work from home, but to be able to craft my own schedule. Becoming a Squarespace designer changed my life, and I think during these new times we find ourselves in, where so many businesses are having to transition to the online marketplace in order to stay afloat, becoming a self-employed web designer is a really smart move.

Learn more —>

Please note:

  • This is not a design course. Rather, this course assumes you already possess at least a basic understanding of Squarespace design and need guidance on converting that knowledge into a business.

  • Due to the inherent nature of digital products, refunds are strictly prohibited once purchase has been made.

  • The course cost is in USD currency


nordvpn