News for hackers. Stuff that matters.
Re:PNG Is Back by andsoitis on Wednesday June 25, 2025 @01:14AM (#44373806)
> Curious if Animated SVGs are also a thing.

Yes. Relevant animation elements:

• <set>

• <animate>

• <animateTransform>

• <animateMotion>

See https://www.w3schools.com/graphics/svg_animation.asp

Re:PNG Is Back by shakna on Wednesday June 25, 2025 @02:41AM (#44374253)
Slightly related, I recently hit on this SVG animation bug in Chrome (that someone else found):

https://shkspr.mobi/blog/2025/06/an-annoying-svg-animation-b...

Re:PNG Is Back by albert_e on Wednesday June 25, 2025 @02:25AM (#44374154)
Oh TIL - Thanks!

This could possibly be used to build full fledged games like pong and breakout :)

Re:PNG Is Back by jerf on Wednesday June 25, 2025 @02:04PM (#44380157)
SVG also supports Javascript, which will probably be a lot more useful for games.
Re:PNG Is Back by dveditz_ on Wednesday June 25, 2025 @03:42PM (#44381167)
It supports JavaScript when used as a document, but when used as an "image" by a browser (IMG tag, CSS features) JavaScript and the loading of external resources are disabled.
Re:PNG Is Back by mattigames on Wednesday June 25, 2025 @01:37AM (#44373932)
Overshadowed by CSS animations for almost all use cases.
Re:PNG Is Back by lawik on Wednesday June 25, 2025 @01:54AM (#44374011)
But animated gradient outlines on text is the only use-case I care about.
Re:PNG Is Back by mattigames on Wednesday June 25, 2025 @07:18AM (#44375962)
"Use case" is written without hyphen https://en.m.wikipedia.org/wiki/Use_case
Re:PNG Is Back by fkyoureadthedoc on Wednesday June 25, 2025 @09:25AM (#44377078)
I have to differentiate myself from LLMs by using words wrong though
Re:PNG Is Back by WorldMaker on Wednesday June 25, 2025 @01:20PM (#44379726)
Hyphenation of multi-word nouns is a process in English that usually happens after some time of usage as separate words. It often happens before eventually merger into a single compound word noun. Such as: "Electronic Mail" to "E Mail" to "e-mail" to "email".

Given how often it is used as a jargon term in software development, I can absolutely see this usage of "use-case" here as a "vote" for the next step in the process. Will we eventually see "usecase" become common? It's possible. I think it might even be a good idea. I'm debating adding my own "votes" for the hyphen moving forward.

Re:PNG Is Back by account42 on Thursday June 26, 2025 @05:23AM (#44385632)
*in browsers

Most other SVG renderers don't support much CSS.