Particle laboratory
A TypeScript library for animated removal and restoration of DOM elements, with built-in GPU-accelerated WebGL2 particle effects inspired by the famous Thanos snap. Compatible with native JavaScript and any framework.
npm install vanilla-disintegrate @zumer/snapdomBuild an effect in the playground
Interactive playground
Create your effect
Start from a preset, tune removal and restoration separately, preview both directions, and copy ready-to-use TypeScript.
Click "Remove/Restore" to see the effect
import Disintegrator from 'vanilla-disintegrate/snapdom';
export const disintegrator = new Disintegrator({
preset: 'dust',
});