Jump to content

Pass through

Go to solution Solved by yubrajs,

Recommended Posts

Posted

https://www.gomaproductions.com/iad

mdp : gomaprods2023++

 

Hi everyone, 

I have a transition to black and white when we hover the pictures, but 

when we hover the play button (on top of it), the picture goes back to normal.

I'm trying to keep it in black and white but with no result.

(I tried "pointer-events: none;" on the play button but it doesn't work).

do you happen to have a solution ?

  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
Posted

Hi, 

Instead of applying transition to an image with class .img; apply it on whole "a" tag. Like:

.thumbnail2 a{

filter: grayscale(0%);

}

.thumbnail2 a:hover{

transition: filter .3s ease-in-out;
  -webkit-filter: grayscale(0%);
  filter: grayscale(100%);

}

Remove below code:

.img {

transition: filter .3s ease-in-out;
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);

}

 

 

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.