What’s the usual practice — do people code in SVG directly or they draw in for example Figma and generate a SVG file?
I was trained as a graphic designer, so I either drew stuff in Inkscape, or imported it from some other program. Had to do quite a bit of work to get filesizes down to something reasonable for: http://shapeoko.github.io/Docs/ One late development was working up a mechanism where an image could be clicked on to open it in a new window: http://shapeoko.github.io/Docs/content/tPictures/PS20028-100... and then the part n…
SVG Tutorial
31–40 of 113 posts
Re: SVG Tutorial
#32Re: SVG Tutorial
#33All in all, excellent ressource! Great and super clear examples. Minor nitpick @clip-path; they propose the following code: But that means describing the big circle twice. If you want to change the size of the circle you will have to modify it in two places. Since we're already using defs it would be better to write this IMHO: (rest unchanged)
-
+
-
+
(Personally I’d also drop the -wrapping. Never did understand why structuring them that way is recommended, I don’t think it actually gets you anything except for the vanishingly rare case where you want to put something that would render if it were not in a tag—I say “vanishingly rare” because situations like you showed—//defs/circle—should normally actually use .)Re: SVG Tutorial
#34Personally, I'm partial to path which can do almost anything and tends to be less verbose than other methods.
Long time student, but I see that I still have lots to learn.
I suck so much at drawing and dislike images so much that for ease and performance, I built my entire side project with svg.
After today, it looks like I have quite a bit of refactoring to do. Thank you, OP!
Re: SVG Tutorial
#35What’s the usual practice — do people code in SVG directly or they draw in for example Figma and generate a SVG file?
Re: SVG Tutorial
#36Can I somehow put the css classes inside the svg to have it self contained without resorting to inline styles?
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/sty...
And SVG elements can have classes: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/c...
Re: SVG Tutorial
#37oh wait, it's december. no i don't xD
Re: SVG Tutorial
#38This is obviously not as flexible as true SVG, but it is familiar to author for anyone who's written a React application. I've used it on the backend to generate match reports for League of Legends [1]
Re: SVG Tutorial
#39flaps too slow, i got shit to do ;D oh wait, it's december. no i don't xD
Re: SVG Tutorial
#40This is fantastic! I especially like the examples with curves, which I continue to struggle with, along with clipping. Personally, I'm partial to path which can do almost anything and tends to be less verbose than other methods. Long time student, but I see that I still have lots to learn. I suck so much at drawing and dislike images so much that for ease and performance, I built my entire side project with svg. Afte…