0

Why am I not getting output ? The hover effect is not working properly

https://sololearn.com/compiler-playground/W3lo50qj5E2w/?ref=app

8th Feb 2024, 8:58 PM
susi
susi - avatar
1 ответ
+ 4
susi .card{...} should be position:relative, it is the container of .front and .back .card div{...} should be position:absolute, it is equivalent to .front,.back{...} in this case. .card { width: 200px; height: 200px; position: relative; perspective: 1000px; } .card div { width: 100%; height: 100%; position:absolute; transition: transform 0.5s; }
8th Feb 2024, 11:24 PM
Bob_Li
Bob_Li - avatar