Jump to content

Post-hover glitch?

Recommended Posts

Hello, 

 

I have this code 

.list-item .list-image { border-radius: 12px;
 filter: grayscale(100%);} 
div:hover .list-item .list-image:hover { border-radius: 12px !important;
  filter: none;
  transform: scale(1.1);
  transition: .5s ease all;

 

which gives this following effect (video)

 

But for some reason the border-radius disappears one hover. Ideally I would like to make sure that the transition includes the radius-border. 

 

Thank you in advance! 

Link to comment
  • Replies 3
  • Views 374
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
On 5/13/2024 at 4:51 PM, Gigi-C said:

https://thevalleycleaningservices.squarespace.com/

On the services part. Thank you!

Add this CSS code under

.list-item-media-inner {
    border-radius: 12px;
}
.list-item-media-inner img, li:hover img {
    transition: all 0.3s;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.