-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimation.html
More file actions
59 lines (58 loc) · 1.68 KB
/
animation.html
File metadata and controls
59 lines (58 loc) · 1.68 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
<html>
<head>
<title>Animation</title>
<style>
.animation{
background-color: rgb(97, 58, 9);
height: 100px;
/* Animation Call */
animation-name: ani2;
animation-duration: 5s;
animation-iteration-count: infinite;
animation-delay: 2s;
animation-direction: alternate;
/* animation-timing-function: ; */
animation-fill-mode: both;
}
@keyframes ani {
from{
/* Startpoint */
width: 0;
}
to{
/* endpoint */
width: 100%;
}
}
@keyframes ani2 {
0%{
background-color: brown;
width: 10%;
}
20%{
background-color: black;
width: 20%;
}
40%{
width: 40%;
background-color: red;
}
60%{
width: 60%;
background-color: teal;
}
80%{
width: 80%;
background-color: thistle;
}
100%{
width: 100%;
background-color: gray;
}
}
</style>
</head>
<body>
<div class="animation"></div>
</body>
</html>