Skip to content

Commit b7174e8

Browse files
authored
Update index-waa.html
1 parent 9192d4a commit b7174e8

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed
Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en-us">
33
<head>
44
<meta charset="utf-8" />
@@ -23,37 +23,39 @@
2323
left: 10px;
2424
color: white;
2525
}
26-
2726
</style>
2827
</head>
2928
<body>
30-
<div class="div1"><p>transition-timing-function: frames(10)<p></div>
31-
<div class="div2"><p>transition-timing-function: steps(10);<p></div>
32-
<div class="div3"><p>transition-timing-function: ease-in;<p></div>
29+
<div class="div1">
30+
<p>transition-timing-function: steps(5)</p>
31+
<p></p>
32+
</div>
33+
<div class="div2">
34+
<p>transition-timing-function: steps(10);</p>
35+
<p></p>
36+
</div>
37+
<div class="div3">
38+
<p>transition-timing-function: ease-in;</p>
39+
<p></p>
40+
</div>
3341

3442
<script>
35-
36-
var easingFunctions = [
37-
'frames(10)',
38-
'steps(10)',
39-
'ease-in'
40-
]
43+
var easingFunctions = ["steps(5)", "steps(10)", "ease-in"];
4144

4245
var keyFrames = [
43-
{ width: '0%', background : 'red'},
44-
{ width: '100%', background : 'blue'},
45-
]
46+
{ width: "0%", background: "red" },
47+
{ width: "100%", background: "blue" },
48+
];
4649

47-
var divs = document.querySelectorAll('div');
50+
var divs = document.querySelectorAll("div");
4851

49-
for(var i = 0; i < divs.length; i++) {
52+
for (var i = 0; i < divs.length; i++) {
5053
divs[i].animate(keyFrames, {
51-
easing : easingFunctions[i],
52-
duration : 5000,
53-
iterations: Infinity
54+
easing: easingFunctions[i],
55+
duration: 5000,
56+
iterations: Infinity,
5457
});
5558
}
56-
5759
</script>
5860
</body>
5961
</html>

0 commit comments

Comments
 (0)