5 ms·
why not? that's up to the program displaying the animation, not the animation itself -- i'm sure a pausable gif or apng display program is possible
by bigfishrunning 1y ago
why not? that's up to the program displaying the animation, not the animation itself -- i'm sure a pausable gif or apng display program is possible
- pornel 1y agoIt's absolutely possible. Browsers even routinely pause playback when images aren't visible on screen. They just don't have a proper UI and JS APIs exposed, and there's nothing stopping them from adding that. IMO browsers are just stuck with tech debt, and maintainin a no-longer-relevant distinction between "animations" and "videos". Every supported codec should work wherever GIF/APNG work and vice versa. It's not even a performance or complexity issue, e.g. browsers support AVIF "animations" as images, even though they're literally fully-featured AV1 videos, only wrapped in a "pretend I'm an image" metadata.
- joquarky 1y agoI wish browsers still paused all animations when the user hits the Esc key. It's hard to read when there are distracting animations all over most pages.
- deleted 1y ago[deleted]
- nextaccountic 1y ago> They just don't have a proper UI and JS APIs exposed, and there's nothing stopping them from adding that. Browsers should just allow animated gifs and apngs in <video>
- account42 1y agoMore important would be to allow (silent) videos in <img>.
- account42 1y agoBrowsers used to support pausing GIFs by pressing the escape key.