@tsparticles/configs
Version:
tsParticles demo configurations
129 lines (128 loc) • 4.15 kB
JavaScript
const options = {
key: "reduceDuplicates",
name: "Reduce Duplicates",
particles: {
color: {
value: "#ffffff",
},
move: {
direction: "none",
enable: true,
outModes: "bounce",
speed: 2,
},
number: {
value: 16,
},
opacity: {
value: 1,
},
reduceDuplicates: true,
rotate: {
animation: {
enable: true,
speed: 5,
sync: false,
},
direction: "random",
value: {
min: 0,
max: 360,
},
},
shape: {
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,
},
],
},
type: "image",
},
size: {
value: 16,
},
},
background: {
color: "#fff",
},
};
export default options;