Skip to content

[FEATURE] Manually update animations without requestAnimationFrame #2496

@mattrossman

Description

@mattrossman

Is your feature request related to a problem? Please describe.

Framer Motion's animations stop working in scenarios where window.requestAnimationFrame isn't available.

See pmndrs/xr#180 for an example of how this is an issue when using framer-motion or framer-motion-3d in a WebXR immersive session.

Describe the solution you'd like

Expose some way of manually updating animations, so users can pick an appropriate looping mechanism when requestAnimationFrame is unavailable.

Describe alternatives you've considered
n/a

Additional context

GSAP provides an .updateRoot() method for this purpose: https://gsap.com/docs/v3/GSAP/gsap.updateRoot()/

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions