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.
It would be nice to have a CSS property for disabling image animation. Use cases include:
I'm imagining something like
elements and background-images.
image-animation: auto | none, wherenonewould disable image animation onSemantics are slightly subtle to define, because HTML defines image animations as keyed by URL, instead of per element. I can think of two options:
drawImagebehaves)where the second seems tricker to implement (e.g., might include cloning SVG documents?) but also more useful than the first.