←back to thread

519 points cantdutchthis | 3 comments | | HN request time: 0.581s | source
Show context
oblio ◴[] No.44501802[source]
SVG is another proof of worse is better. Nothing should be animated via JavaScript, at least not imperatively.
replies(1): >>44502190 #
0x457 ◴[] No.44502190[source]
but SVG embeds ECMAScript...
replies(2): >>44502238 #>>44504401 #
1. oblio ◴[] No.44502238[source]
Fairly sure there are SVG subsets that can be used. Not all of them embed JS.

And that wasn't my point. SVG supports animation primitives. No need to animate through JS.

replies(2): >>44503687 #>>44503799 #
2. 0x457 ◴[] No.44503687[source]
You're confusing language and runtime environment. SVG lets you use ecmascript of some version in its <script> tags, it obviously doesn't provide browser api available to you from javascript in a browser.
3. deathanatos ◴[] No.44503799[source]
> And that wasn't my point. SVG supports animation primitives. No need to animate through JS.

This isn't (AFAICT) animated via JS. (It's animated by a CSS animation, inside the SVG. TFA is wrong about the <animate> tag being what is leveraged.)