Catalogo preimpostazioni
Queste sono le preimpostazioni ufficiali elencate nel file README tsParticles principale e disponibili nell'area di lavoro delle preimpostazioni.
Cartella di origine: https://github.com/tsparticles/tsparticles/tree/main/presets
Preimpostazioni
ambient- https://www.npmjs.com/package/@tsparticles/preset-ambient - https://particles.js.org/samples/presets/ambientbig-circles- https://www.npmjs.com/package/@tsparticles/preset-big-circles - https://particles.js.org/samples/presets/bigCirclesbubbles- https://www.npmjs.com/package/@tsparticles/preset-bubbles - https://particles.js.org/samples/presets/bubblesconfetti- https://www.npmjs.com/package/@tsparticles/preset-confetti - https://particles.js.org/samples/presets/confetticonfetti-cannon- https://www.npmjs.com/package/@tsparticles/preset-confetti-cannon - https://particles.js.org/samples/presets/confettiCannonconfetti-explosions- https://www.npmjs.com/package/@tsparticles/preset-confetti-explosions - https://particles.js.org/samples/presets/confettiExplosionsconfetti-falling- https://www.npmjs.com/package/@tsparticles/preset-confetti-falling - https://particles.js.org/samples/presets/confettiFallingconfetti-parade- https://www.npmjs.com/package/@tsparticles/preset-confetti-parade - https://particles.js.org/samples/presets/confettiParadefire- https://www.npmjs.com/package/@tsparticles/preset-fire - https://particles.js.org/samples/presets/firefirefly- https://www.npmjs.com/package/@tsparticles/preset-firefly - https://particles.js.org/samples/presets/fireflyfireworks- https://www.npmjs.com/package/@tsparticles/preset-fireworks - https://particles.js.org/samples/presets/fireworksfountain- https://www.npmjs.com/package/@tsparticles/preset-fountain - https://particles.js.org/samples/presets/fountainhyperspace- https://www.npmjs.com/package/@tsparticles/preset-hyperspace - https://particles.js.org/samples/presets/hyperspacelinks- https://www.npmjs.com/package/@tsparticles/preset-links - https://particles.js.org/samples/presets/linksmatrix- ricetta dimostrativa sul sito web locale disponibile in/demos/recipes/matrixseaAnemone- https://www.npmjs.com/package/@tsparticles/preset-sea-anemone - https://particles.js.org/samples/presets/seaAnemonesnow- https://www.npmjs.com/package/@tsparticles/preset-snow - https://particles.js.org/samples/presets/snowsquares- https://www.npmjs.com/package/@tsparticles/preset-squares - https://particles.js.org/samples/presets/squaresstars- https://www.npmjs.com/package/@tsparticles/preset-stars - https://particles.js.org/samples/presets/starstriangles- https://www.npmjs.com/package/@tsparticles/preset-triangles - https://particles.js.org/samples/presets/triangles
Ogni cartella preimpostata contiene anche documenti nel monorepo, ad esempio:
Utilizzo rapido
ts
await tsParticles.load({
id: "tsparticles",
options: {
preset: "links",
fullScreen: {
enable: false,
},
},
});Per le configurazioni di produzione, utilizzare l'avvio/arresto/ripresa/distruzione manuale come mostrato nelle ricette in /demos/.
Utilizza /playground/presets per testare ciascuna preimpostazione con controlli Avvio/Pausa espliciti.
