You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll see there is only a js to implement.
Compile the node_modules/particles.js/particles.js and implement it on your site.
Then set a dom id to: "particles.js".
In my case it was body:
Play around with the styles until you're happy and download the particles.json.
Now make on your webserver the particles.json possible to get loaded.
In my case it is django and I did put it in the static directory so it can be loaded.
Next simply use the following JavaScript at the end of your site: document.addEventListener("DOMContentLoaded", function() { particlesJS.load('particles-js', 'particles.json'); });
Now you are done.
If you have any trouble feel free to contact me here,
I'll try my best to help you. :)
The usage docs don't make any sense on how to use this with node.
Do you have to import the CSS as well?
How do you import it from node_modules?
And why is this part not discussed in the docs?
The text was updated successfully, but these errors were encountered: