With JavaScript, can I change the Z index/layer of an SVG <g> element? -


Assume that I have some composite sizes ( & lt; g & gt; ). I want to be able to click and drag them, but I want to pull someone else up and down in the jade order, so that I want to draw it on the other, the other one should get it.

The Z index in SVG is defined by the order in which the element appears in the document. If you want to take a specific shape at the top, then you have to change the element order.


Comments