title: Paper.js | calling document.body.style.opacity from within a paperscript
body: <p>I have a site which is essentially one big canvas image. At the moment, when the body is loaded it starts to fade in through this code:</p>
  
  <pre><code>&lt;body onLoad="document.body.style.opacity='1'"&gt;
  </code></pre>
  
  <p>However I'd like to call this from within my paperscript as there are times when the body will start fading in before the image is loaded from within the paperscript (image is retrieved from a website).</p>
  
  <p>If this is not possible, would someone be able to point me in the direction of bringing an image in and then passing it to the paperscript without the image being displayed on the site initially?</p>
  
  <p><a href="https://test.stefanlogue.co.uk/" rel="nofollow noreferrer" title="Link to the tool">Link for reference</a></p>