Slide 19
Slide 19 text
WEB ANIMATIONS API
var animation =
element.animate(keyframes, options);
SYNTAX
ball.animate([ { opacity: 1, backgroundColor: 'green' },
{ opacity: 0, backgroundColor: 'red' } ],
2000);
BEISPIEL
ball.animate([ { opacity: 1, backgroundColor: 'green' },
{ opacity: 0, backgroundColor: 'red' } ],
{ duration: 2000, fill: 'forwards', iterations: '3', easing: 'ease-in'});