@tsparticles/configs
Version:
tsParticles demo configurations
186 lines (185 loc) • 4.34 kB
JavaScript
import { MoveDirection } from "@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: MoveDirection.topRight,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🦄",
},
},
},
},
},
{
position: {
x: 0,
y: 66,
},
rate: emitterRate,
particles: {
move: {
direction: MoveDirection.topRight,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🌈",
},
},
},
},
},
{
position: {
x: 100,
y: 33,
},
rate: emitterRate,
particles: {
move: {
direction: MoveDirection.topLeft,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🎉",
},
},
},
},
},
{
position: {
x: 100,
y: 66,
},
rate: emitterRate,
particles: {
move: {
direction: MoveDirection.topLeft,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🤡",
},
},
},
},
},
{
position: {
x: 50,
y: 50,
},
rate: emitterRate,
particles: {
move: {
direction: MoveDirection.top,
},
shape: {
type: "emoji",
options: {
emoji: {
value: "🍑",
},
},
},
},
},
],
};
export default options;