+ 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 Answers
+ 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%)