---
key: resource/animation-frame
type: resource
id: animation-frame
lang: en
title: requestAnimationFrame on MDN
summary: 'Animation callbacks, timestamps, and background-tab behavior.'
updatedAt: null
status: active
url: 'https://gamemechanics.pro/en/resources/#resource-animation-frame'
jsonUrl: 'https://gamemechanics.pro/api/v1/knowledge/en/resource/animation-frame.json'
markdownUrl: 'https://gamemechanics.pro/content/knowledge/en/resource/animation-frame.md'
aliases: []
tags:
  - documentation
  - ''
  - engineering
sourceIds:
  - source-61d9bfebd277d850
sources:
  - id: source-61d9bfebd277d850
    title: requestAnimationFrame on MDN
    url: >-
      https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame
    verifiedAt: null
relations:
  - type: uses
    direction: incoming
    label: Used in these materials
    key: lesson/game-loop
    title: The game loop and time
    url: 'https://gamemechanics.pro/en/lessons/game-loop/'
    jsonUrl: 'https://gamemechanics.pro/api/v1/knowledge/en/lesson/game-loop.json'
    markdownUrl: 'https://gamemechanics.pro/content/knowledge/en/lesson/game-loop.md'
placements: []
supersededBy: []
attributes:
  kind: documentation
  format: null
  language: en
  authors: null
endsAt: null
provenance: >-
  Original editorial recommendation. The external material retains its author’s
  rights.
license: CC-BY-4.0
codeLicense: MIT
attribution: gamemechanics.pro contributors
---
# requestAnimationFrame on MDN

id: animation-frame
type: resource
key: resource/animation-frame
lang: en
status: active
url: https://gamemechanics.pro/en/resources/#resource-animation-frame

Animation callbacks, timestamps, and background-tab behavior.

## When to use it

Animation callbacks, timestamps, and background-tab behavior.

## Connected materials

- Used in these materials: [The game loop and time](https://gamemechanics.pro/en/lessons/game-loop/) (key: lesson/game-loop)

## Sources and provenance

Original editorial recommendation. The external material retains its author’s rights.

- [requestAnimationFrame on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame) (id: source-61d9bfebd277d850)

CC-BY-4.0 · gamemechanics.pro contributors
