-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpikaqiu.html
198 lines (171 loc) · 4.38 KB
/
pikaqiu.html
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
198
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<title>JS Bin</title>
<style>
* {
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
*::before {
box-sizing: border-box;
}
*::after {
box-sizing: border-box;
}
body {
background: #FFE600;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
#container {
height: 300px;
width: 460px;
position: relative;
}
#nose {
position: absolute;
left: 50%;
margin-left: -15px;
top: 100px;
border: 15px solid transparent;
z-index: 2;
border-radius: 50%;
border-top-color: black;
}
#nose:hover {
animation: 0.1s xxx 0s infinite alternate;
}
.eye {
position: absolute;
width: 60px;
height: 60px;
background: #2E2E2E;
border: 2px solid black;
border-radius: 30px;
top: 65px;
}
.eye::before {
content: '';
display: block;
width: 30px;
height: 30px;
background: white;
border-radius: 15px;
top: 0;
position: absolute;
left: 6px;
border: 2px solid black;
}
.eye-left {
right: 50%;
margin-right: 90px;
}
.eye-right {
left: 50%;
margin-left: 90px;
}
.upperLip {
position: absolute;
top: 110px;
width: 100%;
display: flex;
justify-content: center;
z-index: 1;
}
.upperLip::before {
content: '';
display: block;
width: 80px;
height: 30px;
border: 3px solid black;
border-top: none;
border-right: none;
border-bottom-left-radius: 50px 30px;
transform: rotateZ(-20deg);
background: #FFE600;
}
.upperLip::after {
content: '';
display: block;
width: 80px;
height: 30px;
border: 3px solid black;
border-top: none;
border-left: none;
border-bottom-right-radius: 50px 30px;
transform: rotateZ(20deg);
background: #FFE600;
}
.lowerLip-wrapper {
position: absolute;
width: 100%;
top: 120px;
height: 200px;
overflow: hidden;
}
.lowerLip {
position: absolute;
border: 5px solid black;
width: 200px;
bottom: 0;
height: 1800px;
left: 50%;
transform: translateX(-50%);
border-top: none;
border-bottom-left-radius: 100px 900px;
border-bottom-right-radius: 100px 900px;
border-top-left-radius: 100px 100px;
border-top-right-radius: 100px 100px;
background: #FF485F;
box-shadow: inset 0 1610px 0 20px #9B000A;
}
.face {
border: 3px solid black;
position: absolute;
width: 90px;
height: 90px;
border-radius: 45px;
top: 160px;
background: #FF0000;
}
.face-left {
right: 50%;
margin-right: 130px;
}
.face-right {
left: 50%;
margin-left: 130px;
}
@keyframes xxx {
0% {
transform: rotateZ(-3deg);
}
100% {
transform: rotateZ(3deg);
}
}
</style>
</head>
<body>
<div id="container">
<div id="nose">
</div>
<div class="eye eye-left"></div>
<div class="eye eye-right"></div>
<div class="upperLip"></div>
<div class="lowerLip-wrapper">
<div class="lowerLip"></div>
</div>
<div class="face face-left"></div>
<div class="face face-right"></div>
</div>
</body>
</html>