+ 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
9 Answers
+ 3
Use
img {
transform:scale(1);
}
img:hover {
transform:scale(1.5);
}
+ 1
No, I want the image to be magnified first by click, and then back to the original state after clicking the enlarged image))
+ 1
no))) I want a clean css without js))
+ 1
The question is how to return this scale 1.5 back to scale 1 by clicking on the open picture))
+ 1
okay, I need 2 pseudo-classes, so that one opens the picture, and the second closes the open picture ...
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.