How to use viewBox inside the <symbol> tag? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

How to use viewBox inside the <symbol> tag?

22nd Feb 2019, 7:41 AM
Алмат Айтбаев
Алмат Айтбаев - avatar
3 Antworten
+ 7
Almat I am not sure if this will help but you could take a look at an example I wrote some time ago. See https://code.sololearn.com/WsCy78HbZoTx/?ref=app
22nd Feb 2019, 11:02 AM
Richard Myatt
Richard Myatt - avatar
+ 6
The format of viewbox is viewbox="x, y, zy, zy" Where x, y is the offset from the origin point and zx, zy is the zooming of the svg from original size, eg the size of svg is width 300, height 300; zx, zy is 150,150 would make the symbol double the size.
22nd Feb 2019, 9:06 AM
Calviղ
Calviղ - avatar
+ 4
Excellent!! Richard Miyat you surely guessed my thoughts on the question posed. This code seems to completely clarify issues with the <symbol viewBox> tag. I will study this immediately. thank you !! ☺️👍
22nd Feb 2019, 11:35 AM
Алмат Айтбаев
Алмат Айтбаев - avatar