-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmoustache.css
68 lines (63 loc) · 1.13 KB
/
moustache.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
body{
margin: 0;
padding: 0;
background: #fff;
}
.moustache{
position: absolute;
top: 30%;
left: 30%;
transform: translate(-50%, -50%);
width: 180px;
height: 181px;
border-radius: 50%;
box-shadow: 150px 240px 0 0 black,300px 240px 0 0 black;
}
.moustache:before{
content: "";
position: absolute;
top: 132px;
left: 50px;
width: 180px;
height: 109px;
border-bottom: solid 180px black;
border-radius: 0 0 0 100%;
transform: rotate(-40deg);
transform-origin: right 175px;
animation: anileft 1s ease-in-out infinite;
}
.moustache:after{
content: "";
position: absolute;
top: 145px;
left: 443px;
width: 180px;
height: 109px;
border-bottom: solid 180px black;
border-radius: 0 0 100% 0;
transform: rotate(40deg);
transform-origin: left 99px;
animation: aniright 1s ease-in-out infinite;
}
@keyframes anileft{
0%{
transform: rotate(-50deg);
}
50%{
transform: rotate(-30deg);
}
100%{
transform: rotate(-50deg);
}
}
@keyframes aniright{
0%{
transform: rotate(50deg);
}
50%{
transform: rotate(30deg);
}
100%{
transform: rotate(50deg);
}
}