A Pen by Bryan C Guner on CodePen.
Created
July 17, 2022 05:24
-
-
Save bgoonz/e8e36c5b93337bd31fcd916c655b90f2 to your computer and use it in GitHub Desktop.
data structures
This file contains hidden or 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
<div id="tsparticles"></div> |
This file contains hidden or 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
(function () { | |
tsParticles.load("tsparticles", { | |
fpsLimit: 12, | |
particles: { | |
move: { | |
enable: true, | |
outMode: "bounce", | |
gravity: { enable: true }, | |
speed: 10 | |
}, | |
life: { duration: { sync: true, value: 5 }, count: 1 }, | |
shape: { type: "circle" }, | |
collisions: { enable: true }, | |
size: { value: 10 }, | |
color: { value: ["#f00", "#ff0", "#fff", "#0f0", "#0ff", "#00f", "#f0f"] }, | |
links: { enable: true } | |
}, | |
interactivity: { | |
detect_on: "canvas", | |
events: { onHover: { enable: true, mode: "repulse" } } | |
} | |
}); | |
}.call(this)); |
This file contains hidden or 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://cdnjs.cloudflare.com/ajax/libs/tsparticles/1.17.12/tsparticles.min.js"></script> |
This file contains hidden or 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
* { | |
margin: 0; | |
} | |
#tsparticles { | |
background: #000; | |
height: 100vh; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment