<!-- sample from https://particles.matteobruni.it/#virus -->
<!-- tsParticles container -->
<div id="tsparticles"></div>
<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">tsParticles</span>
</a>
<div>
<a class="github-button" href="https://github.com/matteobruni/tsparticles" data-icon="octicon-star" 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" aria-label="Fork matteobruni/tsparticles on GitHub">Fork</a>
<a class="github-button" href="https://github.com/matteobruni/tsparticles/releases/tag/tsparticles%401.28.0" data-icon="octicon-download" aria-label="Download matteobruni/tsparticles on GitHub">Download</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: absolute;
width: 100%;
height: 100%;
background-color: #323031;
background-image: url("");
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
}
.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", {
fpsLimit: 60,
interactivity: {
detectsOn: "canvas",
events: {
onClick: { enable: true, mode: "push" },
onHover: {
enable: false,
mode: "bubble",
parallax: {
enable: false,
force: 60,
smooth: 10
}
},
resize: true
},
modes: {
bubble: { distance: 400, duration: 2, opacity: 1, size: 64, speed: 3 },
grab: { distance: 400, line_linked: { opacity: 1 } },
push: { particles_nb: 4 },
remove: { particles_nb: 2 },
repulse: { distance: 200, duration: 0.4 }
}
},
particles: {
color: { value: "#ffffff" },
lineLinked: {
color: "#323031",
distance: 150,
enable: false,
opacity: 0.4,
width: 1
},
move: {
attract: { enable: false, rotateX: 600, rotateY: 1200 },
collisions: true,
direction: "none",
enable: true,
outMode: "bounce",
random: true,
speed: 6,
straight: false
},
number: {
density: {
enable: false,
area: 800
},
value: 100
},
opacity: {
animation: { enable: false, minimumValue: 0.1, speed: 1, sync: false },
random: false,
value: 1
},
shape: {
character: {
fill: false,
font: "Verdana",
style: "",
value: "*",
weight: "400"
},
image: {
height: 32,
replaceColor: true,
src: "https://particles.js.org/images/sars-cov-2.png",
width: 32
},
polygon: { nb_sides: 5 },
stroke: { color: "#000000", width: 0 },
type: "image"
},
size: {
anim: { enable: false, minimumValue: 8, speed: 20, sync: false },
random: false,
value: 32
}
},
polygon: {
draw: { enable: false, lineColor: "#ffffff", lineWidth: 0.5 },
move: { radius: 10 },
scale: 1,
type: "none",
url: ""
},
detectRetina: true
});