-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimgflip.css
47 lines (46 loc) · 845 Bytes
/
imgflip.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body{
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: #999;
}
.con{
width: 310px;
height: 460px;
/* background: red; */
display: flex;
align-items: center;
justify-content: center;
transform-style: preserve-3d;
perspective: 1000px;
}
.con .front{
position: absolute;
width: 300px;
height: 450px;
backface-visibility: hidden;
transition: 1.5s all;
}
.con:hover .front{
transform: rotateY(-180deg);
}
.con .back{
/* position: absolute; */
width: 300px;
height: 450px;
transform: rotateY(180deg);
transition: 1.5s all;
backface-visibility: hidden;
}
.con:hover .back{
transform: rotateY(0deg);
}
img{
border-radius: 10px;
}