Namespace: Timers:cancelAnimationFrame

Timers:cancelAnimationFrame

Source:

Methods

cancelAnimationFrame(id)

This is a simple streamlined, vendor-cascading version of window.cancelAnimationFrame.

Parameters:
Name Type Description
id Number

either the id of the requestAnimationFrame or its timeout fallback

Source:
See:
Example
cancelAnimationFrame(requestAnimationFrame(function(){ window.body.style.opacity = 0; }));