-
Notifications
You must be signed in to change notification settings - Fork 17
/
odditeration.html
executable file
·56 lines (56 loc) · 977 Bytes
/
odditeration.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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="utf-8"/>
<title>Animation iteration count</title>
<link href="../styles/style-edit.css" rel="stylesheet">
<style>
div {
border: 5px black solid;
padding: 10px;
font-family: sans-serif;
box-sizing: border-box;
}
article {
height: 10px;
background: red;
background: linear-gradient(to right, black 10%, white 10%);
background-size: 50px 10px;
margin: 20px 0;
position: relative;
}
article:after,
article:before {
content: '';
height: 30px;
width: 5px;
top: -10px;
position: absolute;
left: 500px;
background-color: red;
}
article:before {
left: 100px;
}
</style>
</head>
<body>
<style contenteditable id="editme">div {
animation: width 10s linear 5s;
animation-iteration-count: 0.25;
}
@keyframes width {
0% {
height: 500px;
width: 500px;
}
100% {
height: 100px;
width: 100px;
}
}
</style>
<article></article>
<div id="blue">Does the animation finish?</div>
</body>
</html>