Skip to content

[css-images] Disabling image animation #1615

@simonlindholm

Description

@simonlindholm

It would be nice to have a CSS property for disabling image animation. Use cases include:

  • thumbnails
  • Twitter-like "only animate images in focus"
  • not wanting to animate user-uploaded content
  • user stylesheets/extensions

I'm imagining something like image-animation: auto | none, where none would disable image animation on elements and background-images.

Semantics are slightly subtle to define, because HTML defines image animations as keyed by URL, instead of per element. I can think of two options:

  • Paused images show the first frame (like how canvas's drawImage behaves)
  • Images that are ever shown as paused are animated individually

where the second seems tricker to implement (e.g., might include cloning SVG documents?) but also more useful than the first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Regular agenda

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions