News for hackers. Stuff that matters.
Re:Magical SVG Techniques by nverno on Friday May 27, 2022 @08:21AM (#31528700)
Do you use a tool for that? Or just the browser?
Re:Magical SVG Techniques by mgdlbp on Friday May 27, 2022 @08:38AM (#31528855)
I've been using vscode with an SVG live preview extension.
Re:Magical SVG Techniques by sbarre on Friday May 27, 2022 @10:08AM (#31529811)
Can you share which extension you use? There seem to be a few of them out there.
Re:Magical SVG Techniques by mgdlbp on Friday May 27, 2022 @11:37AM (#31530841)
https://marketplace.visualstudio.com/items?itemName=jock.svg

It also does other IDE things like completions and MDN docs tooltips (quite handy for infrequent path authoring).

Don't remember why, but I also have a separate SVGO (sort of a formatter) extension.[1] Perhaps because of the brokenness in the other extension (noted on its marketplace page).

[1] https://marketplace.visualstudio.com/items?itemName=1000ch.s...

Re:Magical SVG Techniques by bambax on Friday May 27, 2022 @08:24AM (#31528736)
I just code in a text editor or in jsfiddle.net.

Changing gradients values or attaching a different gradient can only be done in JS (not CSS, AFAIK).

Re:Magical SVG Techniques by iostream24 on Friday May 27, 2022 @06:01PM (#31535432)
You can use a subset of css on svg too… and either css or js animation
Re:Magical SVG Techniques by FractalHQ on Saturday May 28, 2022 @10:55AM (#31540810)
You can also use the <animate /> SVG element to animate any SVG property with complex easing and timing curves.