@tsparticles/configs
Version:
tsParticles demo configurations
134 lines (133 loc) • 4.55 kB
JavaScript
const options = {
key: "emitterImages",
name: "Emitter Images",
particles: {
move: {
enable: true,
outModes: "destroy",
speed: 2,
},
number: {
density: {
enable: true,
},
value: 80,
},
opacity: {
value: 1,
},
rotate: {
animation: {
enable: true,
speed: 5,
sync: false,
},
direction: "random",
value: {
min: 0,
max: 360,
},
},
shape: {
type: "circle",
},
size: {
value: 16,
},
},
background: {
color: "#fff",
},
emitters: {
particles: {
shape: {
type: "image",
options: {
image: [
{
src: "https://particles.js.org/images/fruits/apple.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/avocado.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/banana.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/berries.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/cherry.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/grapes.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/lemon.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/orange.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/peach.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/pear.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/pepper.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/plum.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/star.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/strawberry.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/watermelon.png",
width: 32,
height: 32,
},
{
src: "https://particles.js.org/images/fruits/watermelon_slice.png",
width: 32,
height: 32,
},
],
},
},
},
},
};
export default options;