Shader
Dust Disintegration
Wrap any view and it vanishes into fine dust that lifts and blows away, like a Thanos snap.
WebGPU compute shader + Reanimated
$9.99
Or get it with ProBy buying you agree to the Terms and Licence. All sales are final.
Recorded on iPhone. Photos in a gallery blow away as dust when deleted.
Features
- Turns any view to dust: text, images, buttons or a whole card
- Each grain takes the colour of the spot it came from
- Two looks: fine dust that lifts and fades, or a gust that sweeps it across the screen
- Tune wind, swirl, gravity, grain size and shape, and how the edge frays
- Dust can blow across the whole screen, not just inside the view
- Up to 960,000 grains on the GPU, and no cost while idle
- Fades out gently with Reduce Motion
Installation
React Native WebGPU needs Android 8 or later.
Usage
How it works
When you call disintegrate(), the view's pixels are copied into a GPU texture and a clear canvas covers the screen, drawing an exact copy on top before the real view hides. A WebGPU compute shader then runs one grain per tile of the view: it stays put until a sweeping edge reaches it, bursts off in its own direction, and rides the wind and swirling air until it fades. The canvas and its GPU memory exist only while the dust is playing.
More once you own it
Examples, the full list of props and every advanced option for Dust Disintegration are here for owners.