-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathface.css
More file actions
85 lines (73 loc) · 1.34 KB
/
Copy pathface.css
File metadata and controls
85 lines (73 loc) · 1.34 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
*{
margin: 0%;
padding: 0%;
}
html,body{
height: 100%;
width: 100%;
}
.main{
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #262c38;
}
.emoji{
width: 200px;
height: 200px;
background: linear-gradient(#ffda6b,#ff935c);
border-radius: 50%;
}
.face{
position: relative;
height: 100%;
width: 100%;
animation: face 3s linear 0s infinite;
}
#left{
width: 20px;
height: 35px;
background-color: black;
position: absolute;
left: 3em;
top: 4em;
border-radius: 50%;
}
#right{
width: 20px;
height: 35px;
background-color: black;
position: absolute;
right: 3em;
top: 4em;
border-radius: 50%;
}
.mouth{
width: 50px;
height: 70px;
position: absolute;
right: 4.7em;
bottom: 1em;
border-radius: 50%;
border: none;
background: linear-gradient(#481f00,#b96a46);
animation: mouth 3s linear 0s infinite;
}
@keyframes face{
15%,25%{
transform: rotate(25deg) translateX(-35px);
}
45%,65%{
transform: rotate(-25deg) translateX(35px);
}
}
@keyframes mouth{
10%,30%{
width: 35px; height: 35px;
}
50%,70%{
width: 60px; height: 70px;
}
}