Jump to content

purple hover filter

Go to solution Solved by SaranyaDesigns,

Recommended Posts

  • Solution

@rachy1105 ok I'm assuming you're referring to the two images at the bottom of the page? If so, try adding this to your custom CSS:

.fe-block-yui_3_17_2_1_1694104930278_8932 .summary-thumbnail.img-wrapper {
	background-color: #7879a0;
}
.fe-block-yui_3_17_2_1_1694104930278_8932 .summary-thumbnail.img-wrapper img {
	opacity: .25;
	transition: all .4s;
}
.fe-block-yui_3_17_2_1_1694104930278_8932 .summary-thumbnail.img-wrapper img:hover {
	opacity: 1;
}

You can play around with the opacity levels to get the color you want. You may have to add "!important" to the opacity properties to override the defaults if the above doesn't work, so like this:

.fe-block-yui_3_17_2_1_1694104930278_8932 .summary-thumbnail.img-wrapper {
	background-color: #7879a0;
}
.fe-block-yui_3_17_2_1_1694104930278_8932 .summary-thumbnail.img-wrapper img {
	opacity: .25 !important;
	transition: all .4s;
}
.fe-block-yui_3_17_2_1_1694104930278_8932 .summary-thumbnail.img-wrapper img:hover {
	opacity: 1 !important;
}

Let me know?

Link to comment

@rachy1105 perfect circles are tough and can be funky in some browsers because you have to force an aspect-ratio in order to get it to work, which some browsers don't like, but add these properties to the code with the background color from earlier:

.fe-block-yui_3_17_2_1_1694104930278_8932 .summary-thumbnail.img-wrapper {
	background-color: #7879a0;
	border-radius: 50%;
	aspect-ratio: 1/1;
}

For just simple rounded corners, you can adjust the border radius and remove the aspect ratio... and also add the black border you want:

.fe-block-yui_3_17_2_1_1694104930278_8932 .summary-thumbnail.img-wrapper {
	background-color: #7879a0;
	border-radius: 25px; /* play around with this number */
	border: 10px solid #000;
}

 

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.