Implement Element.animate