@tsparticles/configs
Version:
tsParticles demo configurations
198 lines (197 loc) • 5.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", "@tsparticles/engine"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const engine_1 = require("@tsparticles/engine");
const emitterRate = {
delay: 0.2,
quantity: 1,
}, options = {
key: "shapeEmoji",
name: "Shape Emoji",
particles: {
opacity: {
value: 1,
},
size: {
value: {
min: 16,
max: 32,
},
},
move: {
enable: true,
gravity: {
enable: true,
},
speed: 15,
outModes: {
default: "destroy",
top: "none",
},
},
rotate: {
value: {
min: 0,
max: 360,
},
direction: "random",
move: true,
animation: {
enable: true,
speed: 60,
},
},
tilt: {
direction: "random",
enable: true,
value: {
min: 0,
max: 360,
},
animation: {
enable: true,
speed: 60,
},
},
roll: {
darken: {
enable: true,
value: 30,
},
enlighten: {
enable: true,
value: 30,
},
enable: true,
mode: "both",
speed: {
min: 15,
max: 25,
},
},
wobble: {
distance: 30,
enable: true,
move: true,
speed: {
min: -15,
max: 15,
},
},
},
background: {
color: "#000000",
},
emitters: [
{
position: {
x: 0,
y: 33,
},
rate: emitterRate,
particles: {
move: {
direction: engine_1.MoveDirection.topRight,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🦄",
},
},
},
},
},
{
position: {
x: 0,
y: 66,
},
rate: emitterRate,
particles: {
move: {
direction: engine_1.MoveDirection.topRight,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🌈",
},
},
},
},
},
{
position: {
x: 100,
y: 33,
},
rate: emitterRate,
particles: {
move: {
direction: engine_1.MoveDirection.topLeft,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🎉",
},
},
},
},
},
{
position: {
x: 100,
y: 66,
},
rate: emitterRate,
particles: {
move: {
direction: engine_1.MoveDirection.topLeft,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🤡",
},
},
},
},
},
{
position: {
x: 50,
y: 50,
},
rate: emitterRate,
particles: {
move: {
direction: engine_1.MoveDirection.top,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🍑",
},
},
},
},
},
],
};
exports.default = options;
});