-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
44 lines (38 loc) · 981 Bytes
/
style.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
body{
width: 100%;
height: 100vh;
width: 100vw;
background: turquoise;
/*width: 100px;
height: 100px;*/
}
/*
div:hover {
-webkit-transform: rotateX(150deg);
transform: rotateX(150deg);
}
.container {
width: 200px;
height: 200px;
position: relative;
perspective: 1000px;
}
#cube {
width: 100%;
height: 100%;
position: absolute;
transform-style: preserve-3d;
}
#cube figure {
margin: 0;
display: block;
position: absolute;
border: 2px solid black;
}
#cube.show-front { transform: translateZ( -100px ) rotateY( 0deg ); }
#cube.show-back { transform: translateZ( -100px ) rotateX( -180deg ); }
#cube.show-right { transform: translateZ( -100px ) rotateY( -90deg ); }
#cube.show-left { transform: translateZ( -100px ) rotateY( 90deg ); }
#cube.show-top { transform: translateZ( -100px ) rotateX( -90deg ); }
#cube.show-bottom { transform: translateZ( -100px ) rotateX( 90deg ); }
#cube { transition: transform 1s; }*/