We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35281a commit 4da7bc0Copy full SHA for 4da7bc0
README.md
@@ -35,14 +35,14 @@ effect.
35
<div class="pulse" style="width:150px;">Hello world!</div>
36
<script>
37
var elem = document.querySelector('.pulse');
38
- var player = document.timeline.play(new Animation(elem, [
+ var player = elem.animate([
39
{opacity: 0.5, transform: "scale(0.5)"},
40
{opacity: 1.0, transform: "scale(1)"}
41
], {
42
- direction: "alternate",
+ direction: 'alternate',
43
duration: 500,
44
iterations: Infinity
45
- }));
+ });
46
</script>
47
48
Web Animations supports off-main-thread animations, and also allows procedural
0 commit comments