/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
SVGs that feel like GIFs
(koaning.io)
519 points
cantdutchthis
| 1 comments |
08 Jul 25 08:23 UTC
|
HN request time: 0.001s
|
source
Show context
oblio
◴[
08 Jul 25 16:55 UTC
]
No.
44501802
[source]
▶
>>44498133 (OP)
#
SVG is another proof of worse is better. Nothing should be animated via JavaScript, at least not imperatively.
replies(1):
>>44502190
#
0x457
◴[
08 Jul 25 17:33 UTC
]
No.
44502190
[source]
▶
>>44501802
#
but SVG embeds ECMAScript...
replies(2):
>>44502238
#
>>44504401
#
oblio
◴[
08 Jul 25 17:38 UTC
]
No.
44502238
[source]
▶
>>44502190
#
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
#
1.
0x457
◴[
08 Jul 25 20:18 UTC
]
No.
44503687
[source]
▶
>>44502238
#
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.
ID:
GO
↑