Can i reorder paths of svg?

104 views
Skip to first unread message

manu t.m

unread,
Apr 26, 2020, 6:55:00 AM4/26/20
to Snapsvg
Im new to snap svg. Im working on intercative svg elements. i want make zoom effect when i hover on path. But the problem is that some of the paths are below others. so when i hover size increases but not fully visible because its under another path. is there anyway to bring this to front on hover?


Ian

unread,
Apr 26, 2020, 2:39:21 PM4/26/20
to Snapsvg
SVG displays in order of addition to the DOM. So if you want an element on top, you can just add it to somewhere later in time, and it will get moved to the top visually.

Eg mygroup.add(mylowerelement) would move it to the top of mygroup.
Reply all
Reply to author
Forward
0 new messages