+ 3

:hover

how to open the image through img: hover back in place by clicking on the already opened picture? tried it through: active - some garbage comes out 😅 the brain does not want to think ... help) https://code.sololearn.com/WV5GJLJ8tK2O/?ref=app

7th Sep 2017, 12:07 AM
misspo © 2016-2024
misspo © 2016-2024 - avatar
9 Réponses
+ 3
Use img { transform:scale(1); } img:hover { transform:scale(1.5); }
7th Sep 2017, 1:24 AM
Calviղ
Calviղ - avatar
+ 1
No, I want the image to be magnified first by click, and then back to the original state after clicking the enlarged image))
7th Sep 2017, 12:21 AM
misspo © 2016-2024
misspo © 2016-2024 - avatar
+ 1
no))) I want a clean css without js))
7th Sep 2017, 12:33 AM
misspo © 2016-2024
misspo © 2016-2024 - avatar
+ 1
The question is how to return this scale 1.5 back to scale 1 by clicking on the open picture))
7th Sep 2017, 8:49 AM
misspo © 2016-2024
misspo © 2016-2024 - avatar
+ 1
okay, I need 2 pseudo-classes, so that one opens the picture, and the second closes the open picture ...
7th Sep 2017, 9:31 AM
misspo © 2016-2024
misspo © 2016-2024 - avatar
0
I confuse about your question. Since your question is ":hover", so I thought you want to have hover effect. To click is different method.
7th Sep 2017, 8:52 AM
Calviղ
Calviղ - avatar