<div id="tsparticles"></div>
<div id="title">
<h1>Move Mouse Here</h1>
</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>
<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>
<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>
#tsparticles {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
margin: 0;
z-index: -1;
}
#title {
position:absolute;
top: 10%;
left: 50%;
margin-left: -113px;
margin-top: -48px;
width: 226px;
height: 96px;
}
h1 {
color: #fff !important;
text-align: center;
}
.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({
id: "tsparticles",
options: {
particles: {
number: {
value: 0,
density: {
enable: true,
}
},
color: {
value: "#ff0000",
animation: {
enable: true,
speed: 180,
sync: true
}
},
shape: {
type: "circle",
},
opacity: {
value: 0.5
},
size: {
value: { min: 10, max: 50 },
animation: {
enable: true,
speed: 5,
sync: true,
startValue: "random",
destroy: "max"
}
},
move: {
enable: true,
speed: { min: 5, max: 10 },
direction: "none",
outModes: "destroy",
}
},
interactivity: {
events: {
onHover: {
enable: true,
mode: "trail"
},
},
modes: {
trail: {
delay: 0.005,
quantity: 5
}
}
},
background: {
color: "#000000",
image:
"url('https://images.pexels.com/photos/1191710/pexels-photo-1191710.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2')",
position: "50% 50%",
repeat: "no-repeat",
size: "cover"
},
backgroundMask: {
enable: true,
cover: {
color: "#000000"
}
}
}
});