cancel method

void cancel()

The Web Animations API's cancel() method of the Animation interface clears all KeyframeEffects caused by this animation and aborts its playback.

Note: When an animation is cancelled, its Animation.startTime and Animation.currentTime are set to null.

Implementation

external void cancel();