@tsparticles/configs
Version:
tsParticles demo configurations
96 lines (95 loc) • 2.08 kB
JavaScript
const options = {
key: "shapeRoundedPolygon",
name: "Shape Rounded Polygon",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ff0000",
animation: {
enable: true,
speed: 20,
sync: true,
},
},
links: {
enable: true,
},
rotate: {
value: {
min: 0,
max: 360,
},
direction: "clockwise",
animation: {
enable: true,
speed: 5,
sync: false,
},
},
shape: {
type: "rounded-polygon",
options: {
"rounded-polygon": [
{
radius: { min: 0, max: 10 },
sides: { min: 3, max: 8 },
},
],
},
},
opacity: {
value: 0.5,
},
size: {
value: 30,
},
move: {
enable: true,
speed: 6,
},
},
interactivity: {
events: {
onHover: {
enable: true,
mode: "repulse",
},
onClick: {
enable: true,
mode: "push",
},
},
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,
},
},
},
background: {
color: "#000000",
},
};
export default options;