Hacker News new | ask | show | jobs
by kmoser 429 days ago
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.

2 comments

Video I bookmarked when I was stuck in backend land because I knew I’d want to learn it some day:

https://youtube.com/watch?v=wc8ovZZ78SY

I discovered this shortly after introducing The Secret of Kells to a child and had terrible, beautiful ideas about overly ornate websites that I have since thought better of. Mostly.

It would be more performant to use canvas, but it might be kind of fun to do with svg
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.