-
Notifications
You must be signed in to change notification settings - Fork 0
/
tonggle.html
191 lines (176 loc) · 4.5 KB
/
tonggle.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
<!DOCTYPE html>
<html lang="ko">
<head>
<title>동글동글 통글이</title>
<style>
/* animaion */
@keyframes 귀오른쪽 {
from {
transform: rotate(30deg);
}
to {
transform: rotate(40deg) translate(10px);
}
}
@keyframes 귀왼쪽 {
from {
transform: rotate(-30deg);
}
to {
transform: rotate(-40deg) translate(-10px);
}
}
/* setting */
:root {
--pri: #CE705F;
--sec: #ffe8f7;
}
/* reset */
body {
margin: 0;
padding: 0;
}
/* layout */
/* design */
*,
*:after,
*:before {
box-sizing: border-box;
}
body {
background: rgb(149, 156, 255);
}
.licat {
position: relative;
top: 100px;
margin: 50px auto;
width: 430px;
height: 380px;
}
.licat .ear {
position: absolute;
top: 0;
width: 90px;
height: 100px;
border: 10px solid #000;
border-radius: 50%;
background-color: var(--sec);
}
.licat .ear.left {
top: 35px;
left: 65px;
transform: rotate(-30deg);
border-radius: 70% 50% 0 0;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
animation: 귀왼쪽 1s infinite alternate;
animation-delay: 1s;
}
.licat .ear.right {
top: 35px;
right: 65px;
transform: rotate(30deg);
border-radius: 50% 70% 0 0;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
animation: 귀오른쪽 1s infinite alternate;
animation-delay: 1s;
}
.licat .earline.left {
position: absolute;
top: 50px;
left: 0;
width: 60px;
background-color: #000;
border: 5px solid #000;
border-radius: 30%;
transform: rotate(90deg);
border-radius: 10% 0 0 60%;
}
.licat .earline.right {
position: absolute;
top: 50px;
left: 0;
width: 60px;
background-color: #000;
border: 5px solid #000;
border-radius: 30%;
transform: rotate(90deg);
border-radius: 60% 0 0 10%;
}
.licat .face {
position: absolute;
bottom: 0;
width: 330px;
height: 310px;
left: 50px;
border-radius: 50%;
border: 10px solid #000;
background-color: var(--sec);
}
.licat .eye {
position: absolute;
top: 110px;
width: 23px;
height: 23px;
border-radius: 50%;
background-color: #000;
}
.eye.left{
left:110px;
}
.eye.right{
right: 110px;
}
.mouthbottom{
position: absolute;
width: 50px;
height: 45px;
border: 10px solid black;
border-radius: 10% 10% 40% 40%;
top: 155px;
left: 132px;
background-color: #c94f53;
}
.nose {
position: absolute;
top: 135px;
left: 145px;
width: 25px;
height: 15px;
border-radius: 20% 20% 50% 50%;
background-color: #000;
}
.pink{
position: absolute;
top: 140px;
width: 50px;
height: 23px;
border-radius: 50%;
background-color: rgb(245, 139, 139);
}
.pink.r {
right: 50px;
}
.pink.l {
left : 50px;
}
</style>
</head>
<body>
<div class="licat">
<div class="ear left">
<div class="earline left"></div>
</div>
<div class="ear right">
<div class="earline right"></div>
</div>
<div class="face">
<div class="eye left"></div>
<div class="eye right"></div>
<div class="nose"></div>
<div class="mouthbottom"></div>
<div class="pink r"></div>
<div class="pink l"></div>
</div>
</div>
</body>
</html>