SVG visibility Attribute
The visibility attribute allows you to control the visibility of graphical elements. It has effect only on the following elements <a>, <altGlyph>, <audio>, <canvas>, <circle>, <ellipse>, <foreignObject>, <iframe>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textPath>, <tref>, <tspan>, <video>
visibility = visible | hidden | collapse
Attribute Values: The visibility attribute accepts the values mentioned above and described below
- visible: This value indicates that the element will be visible.
- hidden: This value indicates that the element will not be visible.
- collapse: This value is equivalent to hidden.
Example 1: Below is the example that illustrates the use of the visibility attribute.
Example 2: Below is the example that illustrates the use of the visibility attribute.
My Personal Notes arrow_drop_up
Please Login to comment...