+ 3
Is this correct?
img{ filter:grayscale (100%); } img:hover{ filter: saturate(100%); transition: 1s; } But it doesn’t work as I want. I want that when mouse is over the image, it changes its saturation in a second transition. Help please!! Thanks in advance!
12 ответов
+ 5
You should add at img transition:filter 1s;
+ 4
Don’t worry I have just solved it, the problem was that i write saturate (100%) and I had to write grayscale(0%) then it worked!!
+ 3
Sorry but why u ise saturate, use the same grayscale but with less prpcentage for example 0%.
+ 3
george that is what I wrote 🙂
+ 3
Tomás Atrat yes i found your answer after writing my, it is difficult to read  posts via phone)
+ 3
Master Genius I tried that before I could solve it, but the transition happens when the page loads, not when the mouse is over... thank you!!
+ 2
I don't get what does second transition means
+ 2
george  do not worry at all!
+ 2
Your transition 1s; property should be in img{}
+ 1
Abhay  sorry i didn’t explain it well, I mean a the duration of the transition (1s)
+ 1
💜 Alex Tușinean 🍇  I have already tried it but it doesn’t work 😕
+ 1
Tomás Atrat use grayscale(0%)



![Master Genius [ INACTIVE ] - avatar](https://blob.sololearn.com/avatars/d86cb6dd-dce5-411f-97fa-868288a7babf.jpg)



