3 ms·
but SVG embeds ECMAScript...
by 0x457 1y ago
but SVG embeds ECMAScript...
- oblio 1y agoFairly 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.
- 0x457 1y agoYou'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.
- deathanatos 1y ago> 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.)
- socalgal2 1y agotrue, but script tags don't run when used in img tags which is how they work on Github READMEs