←back to thread

A new PNG spec

(www.programmax.net)
615 points bluedel | 3 comments | | HN request time: 1.114s | source
Show context
albert_e ◴[] No.44373786[source]
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(10): >>44373806 #>>44373868 #>>44374146 #>>44374225 #>>44374312 #>>44374556 #>>44374786 #>>44376132 #>>44379316 #>>44385628 #
andsoitis ◴[] No.44373806[source]
> 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

replies(4): >>44373932 #>>44374154 #>>44374163 #>>44374253 #
1. albert_e ◴[] No.44374154[source]
Oh TIL - Thanks!

This could possibly be used to build full fledged games like pong and breakout :)

replies(1): >>44380157 #
2. jerf ◴[] No.44380157[source]
SVG also supports Javascript, which will probably be a lot more useful for games.
replies(1): >>44381167 #
3. dveditz_ ◴[] No.44381167[source]
It supports JavaScript when used as a document, but when used as an "image" by a browser (IMG tag, CSS features) JavaScript and the loading of external resources are disabled.