Skip to content Skip to sidebar Skip to footer

How Can I Manipulate Css Into A Svg

i'm trying to improve my code by assigning the css for properly: isChecked = jqElement.is(':checked'); type = jqElement.attr('tag'); var start = new Date().getTime(); elements = d

Solution 1:

If you set a class on the elements you wanted to hide you could manipulate the class rule i.e. edit

.hide-layer{
    visibility:hidden;
}

to become

.hide-layer{
    visibility:visible;
}

You can access stylesheets via

document.styleSheets

If the above rule was the only rule in the only stylesheet for the page it would be

var rule = document.styleSheets[0].cssRules[0]

and

document.styleSheets[0].cssRules[0].style.setProperty('visibility','visible',null);

would update the visibility property in the rule.

Post a Comment for "How Can I Manipulate Css Into A Svg"