W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

Re: [csswg-drafts] [css-images] Disabling image animation

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Mon, 09 Oct 2017 15:35:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-335194842-1507563339-sysbot+gh@w3.org>
This functionality seems to me as a natural extension of the [Media Fragments URI spec](https://www.w3.org/TR/media-frags/), assuming browsers ever get on board with fully implementing that spec. Then you could use something like:

```
<img src="user-upload.svg#play-state=paused"/>

background-image: icon.gif#t=2s&play-state=paused;
```

Using a URI hash to set the pause might help avoid the issue with HTML expecting all images with the same URL to animate in sync.

The downside, of course, is that you'd need to modify every URL, and therefore use JS to re-enable animations on content images.

Of course, it would _also_ very much like a user-controlled browser feature to disable auto-playing GIFs, etc.  But I do see a benefit to a website designer in being able to use these image formats but also being able to start and stop them.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1615#issuecomment-335194842 using your GitHub account
Received on Monday, 9 October 2017 15:35:44 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:19 UTC