I have some svg elements that can be hidden or shown according to their opacity values. I want elements with opacity=1 be selectable; but some hidden elements which are in front of others, hinder any selection. So,I want to bring an svg element to front when its opacity changes to 1. How can I do that by javascript?
Asked
Active
Viewed 51 times
0
-
1set the elements you don't want to select as pointer-events:none – Robert Longson Jan 10 '18 at 16:28
-
Thanks Robert; it worked. – R. Khajavi Jan 11 '18 at 16:44