Global Index
HTML5 JS API Index > Animation Timing Tutorials & Specs


This page describes Animation Timing extensions to the origial Window type.

cancelAnimationFrame(long handle)
The cancelAnimationFrame method is used to cancel a previously made request to schedule an animation frame update. When cancelAnimationFrame(handle) is called, the user agent MUST set the cancelled flag to true for the callback registered on this Document whose handle is handle.
requestAnimationFrame(FrameRequestCallback callback)
The requestAnimationFrame method is used to signal to the user agent that a script-based animation needs to be resampled. When requestAnimationFrame(callback) is called, the user agent MUST schedule a script-based animation resampling by appending to the end of the animation frame request callback list an entry whose handle is a user-agent-defined integer greater than zero that uniquely identifies the entry in the list and whose callback is callback.