-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path3deffect.css
More file actions
45 lines (44 loc) · 711 Bytes
/
3deffect.css
File metadata and controls
45 lines (44 loc) · 711 Bytes
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
@charset "utf-8";
/* CSS Document */
.main{
width:50%;
height:300px;
margin:60px auto;
position:relative;
transition:all linear 0.5s;
perspective:1500px;
}
.image{
width:100%;
height:100%;
position:absolute;
transition:all linear 0.5s;
backface-visibility:hidden;
transform-style:preserve-3d;
}
.image img{
width:inherit;
height:inherit;
border:#000 solid 2px;
}
.info{
width:100%;
height:100%;
border:2px solid #000;
position:absolute;
transition:all linear 0.5;
transform:rotateY(0deg);
}
.info p{
padding:32px;
width:50%;
font-size:24px;
margin:10px auto;
border:2px dotted #F00;
}
.main:hover .image{
transform:rotateY(180deg);
}
.main:hover .info{
transform:rotateY(180deg);
}