Skip to content

Instantly share code, notes, and snippets.

@noahub noahub/particle.js
Last active Jan 25, 2018

Embed
What would you like to do?
Add Particle.js to page section
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
<script>
var section = "#lp-pom-block-8";
$(section).prepend('<div id="particle-js"></div>');
particlesJS.load('particle-js', "https://cdn.jsdelivr.net/npm/particles.js@2.0.0/demo/particles.json", function() {
console.log('callback - particles.js config loaded');
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.