←back to thread

Nice things with SVG

(fuma-nama.vercel.app)
571 points fmerian | 2 comments | | HN request time: 0.694s | source
Show context
rckt ◴[] No.43666799[source]
SVG feels like a very underexplored and underused territory. You can do so many things with it. It really depends on your imagination. But you’ll possibly need to “hardcore” a lot of stuff, so yeah, depends on the use case as well.
replies(5): >>43666860 #>>43666997 #>>43667408 #>>43669839 #>>43670409 #
perilunar ◴[] No.43669839[source]
One thing i'd like to see is an entire site built with SVG and JS without any HTML at all. It's possible but i haven't seen anyone do it yet.
replies(2): >>43670634 #>>43700938 #
eMPee584 ◴[] No.43670634[source]
so how can you know it's actually possible?
replies(1): >>43670944 #
perilunar ◴[] No.43670944[source]
Browsers will render SVG files. SVG files can link to other SVG files. Just need to configure the server to serve SVG by default — most servers don't but it's an easy config change.
replies(1): >>43672217 #
1. perilunar ◴[] No.43672217[source]
Actually just found one, via an old stack overflow post. Only a three page test, but proves the point:

https://svg.nicubunu.ro

replies(1): >>43687717 #
2. pcthrowaway ◴[] No.43687717[source]
No javascript here though