logoalt Hacker News

albert_etoday at 5:09 AM7 repliesview on HN

So animated GIFs can be replaced by Animated PNGs with alpha blending with transparent backgrounds and lossless compression! Some nostalgia from 2000s websites can be revived and relived :)

Curious if Animated SVGs are also a thing. I remember seeing some Javascript based SVG animations (it was a animated chatbot avatar) - but not sure if there is any standard framework.


Replies

andsoitistoday at 5:14 AM

> Curious if Animated SVGs are also a thing.

Yes. Relevant animation elements:

• <set>

• <animate>

• <animateTransform>

• <animateMotion>

See https://www.w3schools.com/graphics/svg_animation.asp

show 4 replies
riffrafftoday at 5:22 AM

I was under the impression many gifs these days are actually served as soundless videos, as those basically compress better.

Can animated PNG beat av1 or whatever?

show 5 replies
chithanhtoday at 7:32 AM

When it comes to converting small video snippets to animated graphics, I think WEBP was much better than APNG from the beginning. Only if you use GIF as intermediate format then APNG was competitive.

Nowadays, AVIF serves that purpose best I think.

bmachotoday at 6:53 AM

> Curious if Animated SVGs are also a thing.

SVG is just html5, it has full support for CSS, javascript with buttons, web workers, arbitrary fetch requests, and so on (obviously not supported by image viewers or allowed by browsers).

show 2 replies
jonhohletoday at 6:38 AM

It seems crazy to think about, but I interviewed with a power company in 2003 that was building a web app with animated SVGs.

jokoontoday at 8:08 AM

both GIF and PNG use zipping for compressing data, so APNG are not much better than GIF

show 3 replies