Particles effect based on ts-particles.
import { showParticles, hideParticles } from '@novely/particles';
const snow = {
// @see https://particles.js.org/
...
};
engine.script({
start: [
/**
* Will show particles
*/
engine.action.custom(showParticles(snow)),
/**
* Will hide particles
*/
engine.action.custom(hideParticles()),
]
});
CSS zIndex
of layer with particles is 2
.