-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSid.html
More file actions
118 lines (107 loc) · 2.27 KB
/
Copy pathSid.html
File metadata and controls
118 lines (107 loc) · 2.27 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #e0e0e0;
}
#head {
position: relative;
width: 200px;
height: 250px;
background-color: #b0bec5;
border-radius: 15px 15px 40px 40px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
animation: headShake 2s infinite alternate;
}
.eye {
position: absolute;
width: 40px;
height: 50px;
background-color: #fff;
border-radius: 50%;
top: 20%;
overflow: hidden;
}
.eye-left {
margin-left: 30px;
}
.eye-right {
margin-left: 130px;
}
.pupil {
position: absolute;
width: 20px;
height: 20px;
background-color: #000;
border-radius: 50%;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
animation: pupilMove 2s infinite alternate;
}
#pupil-left {
left: 30%;
}
#pupil-right {
left: 70%;
}
#mouth {
position: absolute;
width: 120px;
height: 60px;
border-bottom-left-radius: 60px;
border-bottom-right-radius: 60px;
top: 50%;
left: 50%;
transform: translateX(-50%);
background-color: #f44336;
animation: smile 2s infinite alternate;
}
@keyframes headShake {
0%, 100% {
transform: rotate(0deg);
}
50% {
transform: rotate(5deg);
}
}
@keyframes pupilMove {
0%, 100% {
top: 40%;
left: 50%;
}
50% {
top: 30%;
left: 60%;
}
}
@keyframes smile {
0%, 100% {
height: 60px;
}
50% {
height: 40px;
}
}
</style>
</head>
<body>
<div id="head">
<div class="eye eye-left">
<div class="pupil" id="pupil-left"></div>
</div>
<div class="eye eye-right">
<div class="pupil" id="pupil-right"></div>
</div>
<div id="mouth"></div>
</div>
</body>
</html>