@tsparticles/configs
Version:
tsParticles demo configurations
135 lines (134 loc) • 3.58 kB
JavaScript
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const options = {
key: "svgReplace",
name: "SVG Replace",
interactivity: {
events: {
onClick: {
enable: true,
mode: "push",
},
onHover: {
enable: true,
mode: "bubble",
parallax: {
enable: false,
force: 60,
smooth: 10,
},
},
},
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: "#00f",
},
links: {
blink: false,
color: "#000",
consent: false,
distance: 150,
enable: false,
opacity: 0.4,
width: 1,
},
move: {
enable: true,
speed: 2,
},
number: {
density: {
enable: true,
},
value: 80,
},
opacity: {
value: {
min: 0.1,
max: 1,
},
},
rotate: {
animation: {
enable: true,
speed: 5,
sync: false,
},
direction: "random",
value: {
min: 0,
max: 360,
},
},
shape: {
options: {
image: {
name: "canine",
},
},
type: "image",
},
size: {
value: 16,
},
},
preload: [
{
name: "canine",
src: "/images/canine.svg",
width: 32,
height: 32,
replaceColor: true,
},
],
background: {
color: "#fff",
image: "",
position: "50% 50%",
repeat: "no-repeat",
size: "cover",
},
};
exports.default = options;
});