Positioning and resizing SVG's?

https://codepen.io/pen/ My goal here is to have this be much larger, and act as a background image, something I'm messing with to see if I like it. I thought I could just set a width/height to style the svg but apparently it's not that simple. Ideally I Want this in the middle of the screen, blurred in the background, so I can add content over the top.
CodePen
...
No description
7 Replies
MarkBoots
MarkBoots•13mo ago
the codepen is empty. you need to save it first before you share the link
CDL
CDLOP•13mo ago
Callum
CodePen
OJdjXXo
...
CDL
CDLOP•13mo ago
update: I can resize it using transform(scale), the issue now is moving it into the center.
MarkBoots
MarkBoots•13mo ago
you're missing the viewbox in the svg easiest is to put the svg in a container that fills the full screen and then give it the size https://codepen.io/MarkBoots/pen/KKJvMew
CDL
CDLOP•13mo ago
Aw man, I wasn't too far off Thanks @MarkBoots 🙂
MarkBoots
MarkBoots•13mo ago
no problem copy or fork the pen, i will remove it later
CDL
CDLOP•13mo ago
done, feel free to remove, appreciate it
Want results from more Discord servers?
Add your server