-
Notifications
You must be signed in to change notification settings - Fork 843
/
Copy pathindex.html
58 lines (52 loc) · 1.14 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>animation-timing-function frames example</title>
<style>
body {
margin: 0;
}
div {
position: relative;
width: 100%;
height: 200px;
background: red;
animation: grow;
animation-duration: 5s;
animation-iteration-count: infinite;
}
p {
position: absolute;
width: 250px;
top: 10px;
left: 10px;
color: white;
}
.div1 {
animation-timing-function: frames(10);
}
.div2 {
animation-timing-function: steps(10);
}
.div3 {
animation-timing-function: ease-in;
}
@keyframes grow {
from {
width: 0%;
background: red;
}
to {
width: 100%;
background: blue;
}
}
</style>
</head>
<body>
<div class="div1"><p>animation-timing-function: frames(10)<p></div>
<div class="div2"><p>animation-timing-function: steps(10);<p></div>
<div class="div3"><p>animation-timing-function: ease-in;<p></div>
</body>
</html>