<!-- 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>
/* ---- reset ---- */
body {
margin: 0;
font: normal 75% Arial, Helvetica, sans-serif;
}
canvas {
display: block;
vertical-align: bottom;
}
/* ---- tsparticles container ---- */
#tsparticles {
position: fixed;
width: 100%;
height: 100%;
}
.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;
}
tsParticles.load("tsparticles", {
background: {
image:
"url(https://img4.goodfon.com/original/1920x1080/d/b1/abstract-dark-blue-polygonal-background-abstraktsiia-geometr.jpg?d=1)"
},
backgroundMask: {
enable: true
},
fpsLimit: 60,
emitters: {
direction: "random",
size: {
width: 100,
height: 100
},
position: {
x: 50,
y: 50
},
rate: {
delay: 0.25,
quantity: 2
}
},
particles: {
number: {
value: 0
},
color: {
value: ["#fff"]
},
shape: {
type: "circle"
},
opacity: {
value: 0.5
},
size: {
value: 200,
anim: {
enable: true,
speed: 50,
size_min: 2,
sync: true,
startValue: "min",
destroy: "max"
}
},
move: {
enable: true,
speed: 5,
direction: "none",
random: false,
straight: false,
outModes: {
default: "destroy"
},
attract: {
enable: true,
distance: 250,
rotateX: 600,
rotateY: 1200
}
},
stroke: {
width: 10,
opacity: 1
}
},
interactivity: {
detectsOn: "canvas",
events: {
resize: true
}
},
detectRetina: true
});