Answers for "svg css viewbox"

0

svg css viewbox

// I haven't yet found a way to change the viewBox property with CSS. 
// However this Javascript solution works well:

let mySVG = document.getElementById('svg');
mySVG.setAttribute("viewBox", "0 0 100 100");
Posted by: Guest on April-27-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language