Closed
Description
Search Terms:
HTMLElement
animate
lib.es6.t.ds
Code
let e: HTMLElement;
// ... assign e here ...
e.animate([
{transform: 'translateX(0px)' }, {transform: 'translateX(100px)' }
], {
duration: 200,
easing: 'ease-in-out'
});
Expected behavior:
There should not be a compiler error with the above code.
Actual behavior:
There is a compiler error: Property 'animate' does not exist on type 'HTMLElement'.
Playground Link:
Related Issues:
None
Other information:
web-animations spec: https://www.w3.org/TR/web-animations-1/
MDN link: https://developer.mozilla.org/en-US/docs/Web/API/Element/animate