forked from uservidya/java-mag-angularjs-article
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathngcube.css
87 lines (73 loc) · 1.51 KB
/
ngcube.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.cube-container {
position: relative;
width: 500px;
height: 500px;
display: inline-block
}
.perspective {
position: absolute;
left: 100px;
top: 100px;
-webkit-perspective: 800px;
-webkit-perspective-origin: -50% -50%;
}
.cube {
position: relative;
width: 200px;
height: 200px;
-webkit-transform-style: preserve-3d;
}
.cube div {
position: absolute;
width: 200px;
height: 200px;
background: rgba(255, 255, 255, 0.8);
box-shadow: inset 0 0 80px rgba(125, 125, 125, 1.0);
font-size: 20px;
text-align: center;
line-height: 200px;
color: rgba(0, 0, 0, 0.5);
font-family: sans-serif;
text-transform: uppercase;
background-size: 200px 200px;
}
.back {
-webkit-transform: rotateY(180deg) translateZ(100px);
}
.right {
-webkit-transform: rotateY(90deg) translateZ(100px);
}
.left {
-webkit-transform: rotateY(-90deg) translateZ(100px);
}
.top {
-webkit-transform: rotateX(90deg) translateZ(100px);
}
.bottom {
-webkit-transform: rotateX(-90deg) translateZ(100px);
}
.front {
-webkit-transform: translateZ(100px);
}
@-webkit-keyframes rotation {
from {
-webkit-transform: rotateX(0deg) rotateY(0deg);
}
to {
-webkit-transform: rotateX(359deg) rotateY(359deg);
}
}
.center {
margin: 0 auto;
width: 500px
}
.center h1{
text-align: center;
text-transform: uppercase;
}
.rotate .cube {
-webkit-animation: rotation 5s infinite linear;
}
.rotate .inputs {
display: none;
}