UNPKG

@tsparticles/configs

Version:

tsParticles demo configurations

230 lines (229 loc) 6.79 kB
(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 options = { key: "images", name: "Images", interactivity: { events: { onClick: { enable: true, mode: "push", }, onHover: { enable: true, mode: "bubble", }, }, modes: { bubble: { distance: 400, duration: 2, opacity: 0.8, size: 40, }, push: { quantity: 4, }, }, }, particles: { color: { value: "#ffffff", }, move: { enable: true, 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: { options: { image: [ { name: "apple", }, { name: "avocado", }, { name: "banana", }, { name: "berries", }, { name: "cherry", }, { name: "grapes", }, { name: "lemon", }, { name: "orange", }, { name: "peach", }, { name: "pear", }, { name: "pepper", }, { name: "plum", }, { name: "star", }, { name: "strawberry", }, { name: "watermelon", }, { name: "watermelon_slice", }, ], }, type: "image", }, size: { value: 16, }, }, background: { color: "#fff", }, preload: [ { src: "https://particles.js.org/images/fruits/apple.png", name: "apple", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/avocado.png", name: "avocado", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/banana.png", name: "banana", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/berries.png", name: "berries", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/cherry.png", name: "cherry", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/grapes.png", name: "grapes", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/lemon.png", name: "lemon", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/orange.png", name: "orange", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/peach.png", name: "peach", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/pear.png", name: "pear", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/pepper.png", name: "pepper", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/plum.png", name: "plum", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/star.png", name: "star", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/strawberry.png", name: "strawberry", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/watermelon.png", name: "watermelon", width: 32, height: 32, }, { src: "https://particles.js.org/images/fruits/watermelon_slice.png", name: "watermelon_slice", width: 32, height: 32, }, ], }; exports.default = options; });