←back to thread

Nice things with SVG

(fuma-nama.vercel.app)
571 points fmerian | 2 comments | | HN request time: 0.483s | source
Show context
kmoser ◴[] No.43666600[source]
This taught me that SVGs can be animated with CSS. Cool!

I wonder if anybody has recreated vector graphics games like Asteroids using SVGs and animation. You'd have to use JS to change the shape and direction of the asteroids when they're shot, but that would just require a bit of JS.

replies(3): >>43666640 #>>43666688 #>>43666750 #
1. mkoryak ◴[] No.43666688[source]
It would be more performant to use canvas, but it might be kind of fun to do with svg
replies(1): >>43666784 #
2. hinkley ◴[] No.43666784[source]
Easier to do a11y in SVG.

And the oft overlooked synergy with aria work is test automation. Code that is hard to screen read is often also difficult to integration or E2E test accurately.