Vanilla Disintegratev1.6.1
EN

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/snapdom
Build 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.

Ready-made effects
Animation
Particle laboratory

Shape the motion

DOM elementWebGL2
Preparing snapshot…
Changes how particles accelerate and fade without changing where they travel.
Determines which part of the element starts disintegrating first.
Base lifetime of the particle animation. Longer values make the effect feel slower.
Maximum spread between the first and last particle start times.
Blends the selected release pattern with a fully random order.
Point in each particle lifetime at which fading begins.
Share of particles released before the surrounding layout moves.
Documentation

Bring it into your project

Start with installation and a built-in preset, then add restoration, undo, background preparation, or a custom renderer.