Forum Discussion
Jim_Arbon
9 months agoCommunity Member
New JavaScript API - set opacity not working
The new JavaScript API is pretty great! I've already improved on a funky new project that I'm working on.
I have found a small bug though - setting the opacity (or alpha) property of an object does...
ZevanRosser
9 months agoStaff
Jim_Arbon this does appear to be a bug, I encountered it on Thursday actually but it was on a very strange project so I wasn't 100% sure that it was across the board (it is). The clean workaround is to use "style"
object('6AGhckCeMO2').style.opacity = 0;
If you need the opacity to resume you can use (instead of 0):
object('6AGhckCeMO2').opacity = 0.001;
Thankfully this is an easy issue to resolve and will certainly be fixed in the next update.