-
Notifications
You must be signed in to change notification settings - Fork 3
/
styles.css
197 lines (162 loc) · 3.33 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
@font-face {
font-family: "Grandstander";
src: url("./Grandstander-SemiBold.ttf");
font-weight: 600;
font-style: normal;
}
:root {
--color1: #aa00ff;
--color2: #440066;
}
html {
height: 100dvh;
width: 100%;
display: grid;
place-items: center;
}
body {
margin: 0;
padding: 4px;
display: grid;
place-items: center;
grid-template-rows: repeat(2, min-content);
background-color: hsl(280, 100%, 90%);
}
.peephole {
width: 100%;
max-height: 600px;
aspect-ratio: 1/1;
border-radius: 50%;
background-image: url(img/bg.webp);
background-size: 200%;
background-position: 200% 50%;
animation: bg-scroll 3s infinite;
animation-timing-function: linear;
overflow: hidden;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(0, 0, 0, 0.1),
0 0 0 6px rgba(0, 0, 0, 0.05);
}
@keyframes bg-scroll {
to {
background-position: 0% 50%;
}
}
svg {
display: block;
width: 100%;
filter: drop-shadow(0 0 6px yellow)
drop-shadow(0 8px 12px hsl(270, 100%, 71%))
drop-shadow(-8px 0 12px hsl(330, 100%, 71%));
}
#head {
animation: head 0.25s;
animation-iteration-count: infinite;
animation-direction: alternate;
transform-origin: center left;
}
@keyframes head {
to {
transform: translate(-3px, -1px);
}
}
#neck {
animation: head 0.25s;
animation-iteration-count: infinite;
animation-direction: alternate;
transform-origin: center left;
}
@keyframes neck {
to {
transform: translate(0.001rem, 0);
}
}
#left-arm,
#right-arm {
animation: left-arm 2s;
animation-iteration-count: infinite;
animation-direction: alternate;
transform-origin: center left;
}
@keyframes left-arm {
to {
transform: translate(-4px, 1px) rotate(0.15deg);
}
}
#torso {
animation: torso 0.25s ease-in-out infinite alternate-reverse;
transform-origin: center;
}
@keyframes torso {
to {
transform: translate(-3px, -1px) rotate(1deg);
}
}
#flame {
animation: flaming;
animation-duration: 0.1s;
animation-iteration-count: infinite;
animation-direction: alternate;
transform-origin: center center;
}
@keyframes flaming {
to {
transform: scaleX(1.02);
}
}
@keyframes hop {
to {
transform: rotate(0.5deg) rotateX(2deg);
}
}
#upper-left-leg {
animation: hop;
animation-duration: 0.25s;
animation-iteration-count: infinite;
animation-direction: alternate;
transform-origin: top center;
}
#lower-left-leg,
#lower-right-leg {
animation: lower-leg;
animation-duration: 0.25s;
animation-iteration-count: infinite;
animation-direction: alternate;
transform-origin: top center;
}
@keyframes lower-leg {
to {
transform: rotate(0.5deg) rotateX(-5deg);
}
}
#horse-body,
#horse-head {
transform: rotate(0deg);
animation: bob 0.25s;
animation-iteration-count: infinite;
}
@keyframes bob {
to {
transform: rotate(0.25deg) rotateX(5deg);
}
}
p {
--color1: hsl(290, 100%, 34%);
--color2: hsl(295, 100%, 34%);
-webkit-background-clip: text;
background-image: repeating-linear-gradient(
0deg,
var(--color1),
var(--color1) 20%,
var(--color2) 20%,
var(--color2) 50%
);
background-position: center;
font-family: "Grandstander", serif;
font-size: 2rem;
font-weight: 600;
color: transparent;
filter: drop-shadow(0 -2px 1px hsl(280deg 100% 0% / 0.75));
text-align: center;
margin: 1rem;
padding: 2rem;
}