<!-- tsParticles container -->
<div>
<h1>
tsParticles
</h1>
</div>
<div id="tsparticles"></div>
<!-- https://github.com/matteobruni/tsparticles -->
<!-- https://github.com/matteobruni/object-gui for the editor component -->
<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.17.9" 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>
.github {
font-family: Arial, Helvetica, sans-serif;
bottom: 10px;
right: 10px;
position: fixed;
border-radius: 10px;
background: #fff;
padding: 6px 12px 6px 12px;
border: 1px solid #000;
text-align: center;
}
.github img {
vertical-align: center;
}
.github a,
.github a:hover,
.github a:link,
.github a:visited,
.github a:active {
color: #000;
line-height: 1.5;
vertical-align: middle;
text-decoration: none;
padding: 0.375rem 0.75rem;
}
.github img {
height: 30px;
}
.github #gh-project {
font-size: 20px;
padding-left: 5px;
font-weight: bold;
vertical-align: bottom;
}
tsParticles
.load("tsparticles", {
fpsLimit: 60,
backgroundMode: {
enable: true,
zIndex: 0
},
particles: {
number: {
value: 80,
density: {
enable: true,
area: 800
}
},
color: {
value: "#ff0000",
animation: {
enable: true,
speed: 20,
sync: true
}
},
shape: {
type: "circle",
options: {
polygon: {
sides: 5
},
image: {
src: "https://cdn.matteobruni.it/images/particles/github.svg",
width: 100,
height: 100
}
}
},
stroke: {
width: 0
},
opacity: {
value: 0.5,
random: false,
animation: {
enable: false,
speed: 3,
minimumValue: 0.1,
sync: false
}
},
size: {
value: 3,
random: true,
animation: {
enable: false,
speed: 20,
minimumValue: 0.1,
sync: false
}
},
links: {
enable: true,
distance: 100,
color: "#ffffff",
opacity: 0.4,
width: 1
},
move: {
enable: true,
speed: 6,
direction: "none",
random: false,
straight: false,
outMode: "out",
attract: {
enable: false,
rotateX: 600,
rotateY: 1200
}
}
},
interactivity: {
detectsOn: "canvas",
events: {
onHover: {
enable: true,
mode: "repulse"
},
onClick: {
enable: true,
mode: "push"
},
resize: true
},
modes: {
grab: {
distance: 400,
links: {
opacity: 1
}
},
bubble: {
distance: 400,
size: 40,
duration: 2,
opacity: 0.8
},
repulse: {
distance: 200
},
push: {
quantity: 4
},
remove: {
quantity: 2
}
}
},
detectRetina: true,
background: {
color: "#000000",
image: "",
position: "50% 50%",
repeat: "no-repeat",
size: "cover"
}
})
.then((container) => {
showEditor(container).top().left().theme("neu-dark");
});