forked from ryanemmm/arrivals-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharrivals.css
100 lines (85 loc) · 2.02 KB
/
arrivals.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
88
89
90
91
92
93
94
95
96
97
98
99
100
@-webkit-keyframes flip {
0% {
-webkit-transform: translate(0px) rotateY(-15deg) rotateX(0deg);
width:101%;
background:#222;
}
100% {
-webkit-transform: translate(0px) rotateY(-15deg) rotateX(180deg);
width:101%;
background:#333;
}
}
#board {
border:1px dotted #ccc;
border-radius:5px;
list-style-type:none;
margin:0;
padding:4px;
float:left;
background:#444;
}
#board li {
margin:0;
padding:0;
}
#board li .letter {
border:1px solid #777;
border-radius:5px;
position:relative;
display:inline-block;
width:1em;
height:1.2em;
padding:1px;
margin:1px;
text-align:center;
font:normal normal normal 180% monaco;
color:#fff;
-webkit-tranform-style: preserve-3d;
-webkit-transform: translate(0) rotateY(-15deg);
}
#board li .letter span {
position:absolute;
width:100%;
height:50%;
top:0;
left:0;
}
#board li .letter .top {
background:#222;
z-index:2;
overflow:hidden;
}
#board li .letter .bottom {
background:#111;
height:100%;
overflow:hidden;
}
#board li .letter .flap {
z-index:2;
height:50%;
border-bottom:1px solid #333;
border-radius:5px;
-webkit-transform-origin: 0 100% 0;
-webkit-perspective:500;
-webkit-transform: translate(0px) rotateY(-10deg);
-webkit-background-clip: padding-box;
overflow:hidden;
}
#board li .letter .flap span {
height:100%;
position:absolute;
background:#333;
border-radius:3px;
overflow:hidden;
}
#board li .letter .flap .back {
-webkit-transform: rotateX(180deg);
height:200%;
}
.flipflap .flap {
-webkit-animation-name: flip;
-webkit-animation-iteration-count: infinite;
-webkit-animation-delay:0s;
-webkit-animation-duration:10ms;
}