<!-- tsParticles container -->
<div id="tsparticles"></div>
<!-- https://github.com/matteobruni/tsparticles -->
<div class="github">
<a class="btn btn-link" href="https://github.com/matteobruni/tsparticles" title="Find more info on GitHub">
<img class="img-fluid" id="gh-mark" src="https://cdn.matteobruni.it/images/particles/GitHub-Mark-120px-plus.png" alt="">
<span id="gh-project">Made with tsParticles</span>
</a>
<div style="text-align: center">
<a class="github-button" href="https://github.com/matteobruni/tsparticles" data-icon="octicon-star" data-show-count="true" aria-label="Star matteobruni/tsparticles on GitHub">Star</a>
<a class="github-button" href="https://github.com/matteobruni/tsparticles/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork matteobruni/tsparticles on GitHub">Fork</a>
</div>
</div>
<script async="" defer="" src="https://buttons.github.io/buttons.js"></script>
.github {
bottom: 10px;
right: 10px;
position: fixed;
border-radius: 10px;
background: #fff;
padding: 0 12px 6px 12px;
border: 1px solid #000;
}
.github a:hover,
.github a:link,
.github a:visited,
.github a:active {
color: #000;
text-decoration: none;
}
.github img {
height: 30px;
}
.github #gh-project {
font-size: 20px;
padding-left: 5px;
font-weight: bold;
vertical-align: bottom;
}
const color = "#f00";
tsParticles.load("tsparticles", {
fpsLimit: 60,
fullScreen: {
enable: true
},
particles: {
number: {
value: 0
},
color: {
value: color
},
shape: {
type: ["circle", "square"]
},
opacity: {
value: { min: 0, max: 1 },
animation: {
enable: true,
speed: 1,
startValue: "max",
destroy: "min"
}
},
size: {
value: { min: 3, max: 7 }
},
life: {
duration: {
sync: true,
value: 7
},
count: 1
},
move: {
enable: true,
gravity: {
enable: true
},
drift: {
min: -2,
max: 2
},
speed: { min: 10, max: 30 },
decay: 0.1,
direction: "none",
random: false,
straight: false,
outModes: {
default: "destroy",
top: "none"
}
},
rotate: {
value: {
min: 0,
max: 360
},
direction: "random",
move: true,
animation: {
enable: true,
speed: 60
}
},
tilt: {
direction: "random",
enable: true,
move: true,
value: {
min: 0,
max: 360
},
animation: {
enable: true,
speed: 60
}
},
roll: {
darken: {
enable: true,
value: 25
},
enable: true,
speed: {
min: 15,
max: 25
}
},
wobble: {
distance: 30,
enable: true,
move: true,
speed: {
min: -15,
max: 15
}
}
},
detectRetina: true,
background: {
color: "#232323"
},
emitters: {
direction: "none",
spawnColor: {
value: color,
animation: {
l: {
enable: true,
offset: {
min: 0,
max: 100
},
speed: 0,
sync: false
}
}
},
life: {
count: 0,
duration: 0.1,
delay: 0.6
},
rate: {
delay: 0.1,
quantity: 100
},
size: {
width: 0,
height: 0
}
}
});