Last active
December 28, 2023 11:23
-
-
Save noahub/a81e35c65425a3233239100755ad8ffa to your computer and use it in GitHub Desktop.
Add Particle.js to page section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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