@tsparticles/configs
Version:
tsParticles demo configurations
112 lines (111 loc) • 2.32 kB
JavaScript
const options = {
key: "connect",
name: "Connect",
interactivity: {
events: {
onClick: {
enable: true,
mode: "push",
},
onHover: {
enable: true,
mode: "connect",
},
},
modes: {
bubble: {
distance: 400,
duration: 2,
opacity: 0.8,
size: 40,
},
connect: {
distance: 80,
links: {
opacity: 0.5,
},
radius: 60,
},
grab: {
distance: 400,
links: {
opacity: 1,
},
},
push: {
quantity: 4,
},
remove: {
quantity: 2,
},
repulse: {
distance: 200,
duration: 0.4,
},
},
},
particles: {
color: {
value: "random",
},
links: {
blink: false,
color: "#ffffff",
consent: false,
distance: 150,
enable: false,
opacity: 0.4,
width: 1,
},
move: {
enable: true,
speed: 6,
},
number: {
density: {
enable: true,
},
limit: {
value: 500,
},
value: 300,
},
opacity: {
value: 0.5,
},
shape: {
type: "circle",
},
stroke: {
color: "#fff",
width: 1,
},
size: {
value: {
min: 1,
max: 10,
},
},
},
polygon: {
draw: {
enable: false,
lineColor: "#ffffff",
lineWidth: 0.5,
},
move: {
radius: 10,
},
scale: 1,
type: "none",
url: "",
},
background: {
color: "#000000",
image: "",
position: "50% 50%",
repeat: "no-repeat",
size: "cover",
},
};
export default options;