-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.css
124 lines (121 loc) · 1.98 KB
/
styles.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
body {
align-items: center;
background-color: #EBE3DE;
color: #586B50;
display: flex;
flex-direction: column;
font-family: 'Roboto Mono', monospace;
height: 100vh;
justify-content: space-between;
margin: 0;
}
main {
align-items: center;
display: flex;
flex-direction: column;
flex-grow: 2;
justify-content: center;
margin-bottom: 2em;
width: 100%;
}
footer {
margin-bottom: 1em;
}
a {
transition: color 200ms ease;
}
a, a:visited {
color: #586B50;
}
a:hover, a:active, a:focus {
color: #08D49A;
}
.haha {
align-items: center;
display: flex;
justify-content: center;
margin-bottom: 5%;
width: 70%;
}
.letter {
max-width: 12.5%
}
.letter:not(:first-child) {
margin-left: 1.2%;
}
.nope {
width: 50%;
}
.emoji {
height: 1em;
width: 1em;
margin: 0 .05em 0 .1em;
vertical-align: -0.1em;
}
@keyframes bounce {
0% {
transform: rotateX(-8deg) rotateZ(12deg);
transform-origin: 50% 50%;
}
50% {
transform: scale(1.05);
transform-origin: 50% 50%;
}
100% {
transform: rotateX(8deg) rotateZ(-12deg);
transform-origin: 50% 50%;
}
}
.letter:nth-child(even) {
animation: bounce 300ms linear alternate infinite;
}
.letter:nth-child(odd) {
animation: bounce 300ms linear alternate-reverse infinite;
}
.letter:nth-child(2) {
animation-delay: 60ms;
}
.letter:nth-child(3) {
animation-delay: 120ms;
}
.letter:nth-child(4) {
animation-delay: 180ms;
}
.letter:nth-child(5) {
animation-delay: 240ms;
}
.letter:nth-child(6) {
animation-delay: 300ms;
}
.letter:nth-child(7) {
animation-delay: 360ms;
}
.letter:nth-child(8) {
animation-delay: 420ms;
}
@keyframes shake-horizontal {
0%,
10% {
transform: translateX(0);
}
1%,
3%,
5%,
7% {
transform: translateX(-10px);
}
2%,
4%,
6% {
transform: translateX(10px);
}
8% {
transform: translateX(8px);
}
9% {
transform: translateX(-8px);
}
}
.no {
animation: shake-horizontal 4s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite;
}