Jump to content

Changing hover effect on individual images on grid

Go to solution Solved by paul2009,

Recommended Posts

I currently have a grid of thumbnail images on the home page of website that links to other pages. (this is a graphic design portfolio website)
I have a color overlay hover effect on the images, so when you hover over the image it turns the image a solid blue shade. 
I would like to change this so each image has a different hover color instead of just one color.

Would anyone be able to tell how I can achieve this effect? I've attached a quick example of the effect I'm trying to achieve if that helps.

Thank you!
 

mockup1.jpg

Edited by BadScifi
Added Mockup
Link to comment
  • Replies 4
  • Views 873
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

It's possible to do this by specifying different colours for the different elements by using nth selector like nth-of-type or nth-child. If you need more specific help, you'll to allow us to view the page.

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment
  • Solution

Here's an example for the first two items on the page. Add this to Design > Custom CSS and add further entries for each grid item:

/* Change Grid Item Hover Colors */
.portfolio-grid-overlay .grid-item:nth-of-type(1) .portfolio-overlay {
  background-color: #5FBB8D; /* green */
}
.portfolio-grid-overlay .grid-item:nth-of-type(2) .portfolio-overlay {
  background-color: #649EF7; /* blue */
}

grid-item-hover.gif.f6966867151fa57fcbaeb6e53bb3bbd4.gif

  If this post has helped you, please click a 'Like' or 'Thanks' icon below  ⬇️

Edited by paul2009

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

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.