@tsparticles/configs
Version:
tsParticles demo configurations
79 lines (78 loc) • 2.25 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 minFilterValue = 30, minFilterAlpha = 0, options = {
key: "imageMask",
name: "Image Mask",
smooth: true,
interactivity: {
events: {
onHover: {
enable: true,
mode: "bubble",
parallax: {
enable: false,
force: 2,
smooth: 10,
},
},
},
modes: {
bubble: {
distance: 40,
duration: 2,
opacity: 8,
size: 15,
},
},
},
particles: {
move: {
direction: "none",
distance: 10,
enable: true,
speed: 1,
},
number: {
value: 600,
},
shape: {
type: ["circle", "square", "triangle"],
},
size: {
value: {
min: 3,
max: 5,
},
},
},
canvasMask: {
enable: true,
scale: 5,
pixels: {
filter: (pixel) => pixel.r < minFilterValue && pixel.g < minFilterValue && pixel.b < minFilterValue
? false
: pixel.a > minFilterAlpha,
},
image: {
src: "https://particles.js.org/images/amongus_cyan.png",
},
},
background: {
color: "#000000",
image: "",
position: "50% 50%",
repeat: "no-repeat",
size: "cover",
},
};
exports.default = options;
});