Forum Discussion
AdladeBabylon
4 years agoCommunity Member
Web object and SL-created shapes
Hello,
We encounter a problem that seems present in at least the last 2 SL360 updates : some shapes created in SL and that are supposed to be IN FRONT of a web object disappear (i guess they're b...
MathNotermans-9
4 years agoCommunity Member
Well this at least solves it.
Setting the zIndex to a looooow value and all elements are on top as needed...var webObj = document.querySelector("#slide-window > div > div > div > div > div.slide-layer.base-layer.shown > div.slide-object.slide-object-webobject.shown.cursor-hover > div")
gsap.set(webObj, {css:{zIndex:-50}});
You need a selector for your WebObject offcourse.
here is a sample... deactivate the JS trigger and you will see some of the shapes will disappear behind the WebObject indeed.