Particle as Network animation


(Andreas) #1

Hi,

is it possible to let the particles running in the background oaf my html5 project?

Thanx


(Jonathan Deutsch) #2

Yes - there’s a few approaches you could take:

  • Edit the .html file after export and include relevant code as a background layer
  • Create your background layer as a .html file, upload it, and then use an HTML Widget (aka iframe) within Hype that has a specified URL to this file
  • Create an HTML Widget (aka iframe) in Hype, and basically inline all the code necessary to play the particles.js. You can also reference items in the Hype Resource library via the magic ${resourcesFolderName} variable, like:
    <script src = "${resourcesFolderName}/particles.js"></script>

(Andreas) #3

Oh great i will try this weekend. :grinning:


#4

has this changed recently? Wasn’t it

${resourcesFolderName}

:smiley: shall I put the coffee on?


(Jonathan Deutsch) #5

${resourcesFolderName} is correct - I’m gonna blame the jetlag; coffee would be great. I’ve fixed the above post.