-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdice.css
72 lines (56 loc) · 1.26 KB
/
dice.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
.die-container {
height: 50px;
width: 50px;
}
.die {
position: relative;
-webkit-transform-style: preserve-3d;
}
.die-roller {
height: 50px;
width: 50px;
-webkit-transform-style: preserve-3d;
}
.die-face-1, .die-face-2, .die-face-3, .die-face-4, .die-face-5, .die-face-6 {
background-color: white;
position: absolute;
height: 50px;
width: 50px;
-webkit-backface-visibility: hidden;
font-size: 75px;
line-height: 60%;
text-align: center;
}
.die-face-6 {
-webkit-transform: rotateY(180deg) translateZ(25px);
}
.die-face-5 {
-webkit-transform: rotateY(-90deg) translateZ(25px);
}
.die-face-4 {
-webkit-transform: rotateY(-90deg) rotateX(-90deg) translateZ(25px);
}
.die-face-3 {
-webkit-transform: rotateY(90deg) rotateX(90deg) translateZ(25px);
}
.die-face-2 {
-webkit-transform: rotateY(90deg) translateZ(25px);
}
.die-face-1 {
-webkit-transform: rotateY(0deg) translateZ(25px);
}
.die-roll-2 {
-webkit-transform: rotateY(-90deg);
}
.die-roll-3 {
-webkit-transform: rotateX(-90deg) rotateY(-90deg);
}
.die-roll-4 {
-webkit-transform: rotateX(90deg) rotateY(90deg);
}
.die-roll-5 {
-webkit-transform: rotateY(90deg);
}
.die-roll-6 {
-webkit-transform: rotateY(180deg);
}