My website is essentially one large canvas image. Currently, the body fades in when loaded using this code:
<body onLoad="document.body.style.opacity='1'">
However, I want to initiate this fade within my paperscript because sometimes the body starts fading in before the image is fully loaded from within the paperscript (the image is retrieved from a website).
If it's not achievable, can someone guide me on how to bring in an image and then passing it to the paperscript without displaying the image on the site initially?
Reference link here