AI Image Generate and Dust Disintegrate
A dark card counts a progress ring to 99%, an iridescent ring spreads and the edge bulges like jelly, then the photo focuses from a blurred swirl. On hover a glass button splits into four; Delete breaks the image into 15,000 dust particles. WebGL and RN Skia.
// Sign in to see the source. Free pieces need a free account.
Agent prompt
Add the Now In Code component "ai-image-generate-and-dust-disintegrate" to this project. The full source is attached at the end of this prompt. Put the files under components/ai-image-generate-and-dust-disintegrate/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Sign in to attach the source files ===
Details
- Platforms
- iOS, Android, Web
- Requires
- Expo SDK 54+
- Access
- Free
- Updated
- 18 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @benchodev on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A dark canvas holds one rounded image card in an AI image-generation flow. While it works, a progress ring counts up from 0 percent next to a label that cross-fades from Processing to Generating, with a light sweep across the text. The card then reveals with a focus pull, an iridescent halo with star sparkles, and a jelly-like swell at its edges. Touching the card opens a glass action menu that unfolds from one small bead into a capsule of four: like, regenerate, download and delete. Delete turns the picture to dust that rises and drifts away from left to right over about two seconds, and the card then regenerates itself.
How it's built
One fragment shader body is shared between WebGL and Skia, written in SkSL for React Native. It covers the card shape as a rounded rectangle with a radial displacement, the halo, the focus reveal, the four-bead glass menu merged with a smin blend and a magnifying refraction, and the hiding of cells during dust. Dust itself is a closed-form function per cell, drawn as a Skia atlas of sprites that is mounted only during the delete. Reanimated shared values and a frame callback run the timeline, and a controller reports like, regenerate, download and delete through callbacks.
Good for
- A generated-image gallery or AI creative tool with per-item actions
- A destructive delete that should feel final before the item disappears
- A long-press or tap action menu built from merging glass beads
Dependencies
@shopify/react-native-skiareact-native-reanimatedreact-native