Can't configure a particles background

Hi. I’m following the tutorial at https://webflow.com/website/Tutorial-How-to-integrate-Particlesjs-in-Webflow?s=particles-js but struggling with where to grab the code once I’ve configured and downloaded it from https://vincentgarreau.com/particles.js/ . I end up with quite a few files in the download and can’t tell which one I need to grab code from?

You can click the codepen button instead of downloading the files. There you can see all the code in the JS section.

Many thanks. I gave that a try (copying the code from the JS section into the homepage before body tag) and all it gives me when published is the below:


Clearly, I’m doing something pretty stupid!

1 Like

Not stupid, just un informed :smiley:

JavaScript code should be encased with <script> at the beginning and </script> at the end.
so:

<script>

particlesJS[...
code code code
more code

</script>
1 Like