HTML elements
Styles and functions.
Main elements where global effects are spawned. Place this code at the end of your HTML file.
Resources
CSS file
JS file
ZIP images
ZIP
sounds
Documentation
- The elements style you use to spawn the particles on needs to have position:relative;
- Custom particle images are fully compatible and can be set from the function variable particleImg.
- Some effects can play sounds. Change playSound value to a different one to mute the effect.
- You can change the imagesRoute and soundsRoute Javascript variables to your custom folders routes.
HTML triggers
Hit
Wave
Default
elementId, particleImg, particleNum, minSize, maxSize, particleForce, particleAngle, hueVariation,
allowRotation, blendMode
Conffeti
elementId, soundMode, force, degrees
Explosion
elementId, fireSprite, fireSize, fireScale, smokeParticlesNum, smokeForce
Fireworks
elementId, fireworksNumber, timerMin, timerMax, maxParticles, forceParticles, customColorRGB
Snow / Rain
nameId, elementId, particleImg, particleNum, fallDuration, windForce, size
CSS
CSS file
Javascript
JS file