-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS Animation.html
More file actions
77 lines (76 loc) · 1.39 KB
/
CSS Animation.html
File metadata and controls
77 lines (76 loc) · 1.39 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
<html>
<head>
<title>MUSTACHE</title>
<style type="text/css">
#mustache
{
color: black;
width: 180px;
height: 180px;
border-radius: 50%;
box-shadow: 150px 240px 0 0 currentcolor,
300px 240px 0 0 currentcolor;
position: absolute;
left: 340px;
}
#mustache::before
{
content: "";
height: 120px;
width: 210px;
display: block;
border-bottom: 180px solid currentcolor;
border-radius: 0 0 0 100%;
position: absolute;
top: 120px;
left: 30px;
transform: rotate(-40deg);
transform-origin: right 210px;
animation: shakeleft 1s ease-in-out infinite;
}
#mustache::after
{
content: "";
height: 120px;
width: 210px;
display: block;
border-bottom: 180px solid currentcolor;
border-radius: 0 0 100% 0;
position: absolute;
top: 120px;
left: 390px;
transform: rotate(40deg);
transform-origin: left 210px;
animation: shakeright 1s ease-in-out infinite;
}
@keyframes shakeleft{
0%{
transform:rotate(-50deg);
}
50%{
transform:rotate(-30deg);
}
100%{
transform:rotate(-50deg);
}
}
@keyframes shakeright{
0%{
transform:rotate(50deg);
}
50%{
transform:rotate(30deg);
}
100%{
transform:rotate(50deg);
}
}
</style>
</head>
<body bgcolor="red">
<div id="mustache"></div>
<marquee height="30%"width="100%"align="center"direction="right"loop="20"behaviour="alternate"scrolldealy="20"bgcolor="green">
<h1 align="center">ONLY FOR YESHVI</h1>
</marquee>
</body>
</html>