Top
Best
New

Posted by fmerian 4/12/2025

Nice things with SVG(fuma-nama.vercel.app)
575 points | 107 commentspage 3
rjinman 4/13/2025|
I wrote a game of Tetris in JavaScript with SVG many years ago. It had nice graphics and was smoothly animated. I hadn’t heard of anyone else using SVG like that at the time.

I also made a game called Pro Office Calculator (available on Steam), which includes a Doom-style 3D engine for which I used Inkscape as my map editor. Here’s an example of a map: https://github.com/robjinman/pro_office_calc/blob/develop/da...

enduser 4/13/2025|
Reminds me of Avara which used MacDraw as a level editor. Very cool!
paulryanrogers 4/13/2025||
Fun to see how apparent boundaries can be pushed or broken with clever use of lesser known features.

That said, most of this is probably better done with CSS today.

My only professional exposure to SVG was when a pen tester found my predecessor's code had unintentionally allowed them, and that one can do injection attacks from the SVG itself. Of course this was around the time a client discovered SVG worked for them, so I had to make support official and defeat injection attacks. Good times.

kmoser 4/12/2025||
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.

hinkley 4/12/2025||
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.

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

intrasight 4/12/2025||
Haven't done much recently, but I do really like SVG. I did a fun project for a grid scale battery company in 2017. I generated graphical reports of battery status and health. I used a .Net extension in Sql Server to generate the graphics from the database.
eMPee584 4/13/2025||
A lot of ecosystem vibe seems to go to Lottie at the moment though.. does SVG cover a matching feature set? is there hope for a conversion tool?
staindk 4/12/2025||
Great article! On mobile I can't find anywhere to demo/see the animated content in action, not sure if it's desktop only or what.
soup10 4/13/2025||
i'll be a contrarian, that css and svg "hacks" like this are "impressive" are a symptom of a web-platform that is dogshit for multimedia. If a game did this nobody would even blink, the fact that it's another convoluted css hack makes it "notable".
exabrial 4/12/2025||
All I want is a browser that executes WASM and displays SVG... get out out of JS/HTML hell.
aiibe 4/12/2025||
Svg Tailwind combo makes hover animations easy and fun.
mvdtnz 4/12/2025|
Any examples? This sounds interesting to me.
srid 4/12/2025||

    <svg
        class="w-16 h-16 text-blue-500 transition-all duration-300 ease-in-out transform hover:scale-125 hover:rotate-12 hover:text-purple-600"
        fill="currentColor"
        viewBox="0 0 100 100"
        xmlns="http://www.w3.org/2000/svg"
    >
        <circle cx="50" cy="50" r="40" />
    </svg>
Preview: https://grok.com/share/bGVnYWN5_2a2dd030-8177-4fa0-aac5-17d2...
xwat 4/13/2025|||
Live preview: https://play.tailwindcss.com/db6WOoLcg8
skeptrune 4/13/2025|||
Insane. I had no idea Grok previews were that smooth
xyst 4/12/2025|
svg based games, wen?
xerox13ster 4/12/2025||
wasn't that flash player?
flaviuspopan 4/13/2025||
soon
More comments...