Skip to content
All components
0:00/0:00

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 Pro

By 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

1Install dependencies
npx expo install react-native-webgpu react-native-reanimated react-native-worklets expo-build-properties
2Add the plugins to app.json
{
  "expo": {
    "plugins": [
      "react-native-webgpu",
      ["expo-build-properties", { "android": { "minSdkVersion": 26 } }]
    ]
  }
}

React Native WebGPU needs Android 8 or later.

3Run a development build (Expo Go can't load WebGPU)
npx expo run:ios   # or: npx expo run:android

Usage

import { useRef } from 'react';
import { Button, Text, View } from 'react-native';
import {
  DustDisintegration,
  type DustDisintegrationHandle,
} from '@/components/dust-disintegration';

export function Example() {
  const dust = useRef<DustDisintegrationHandle>(null);
  return (
    <View>
      <DustDisintegration ref={dust}>
        <Text>Gone in a second</Text>
      </DustDisintegration>
      <Button
        title="Snap"
        onPress={() => dust.current?.disintegrate()}
      />
    </View>
  );
}

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.

Next componentKoi Pond
TesseraUI

Welcome back

Sign in to TesseraUI

Your purchases live in your account, so they open on every device you sign in on.

Sign-in isn’t available right now. Please try again in a moment.

By continuing you agree to the Terms, Licence and Privacy Policy.