Particle AssemblePRO
Drifting particles fly home, swell and merge into the finished image.
Code
3 files · 262 lines of TypeScriptPRO
Particle Assemble is part of Pro
Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.
Motion notes
- One particle per grid cell, all in a single fragment shader. Particles ride a smooth, slowly turning flow field that spirals to zero as they arrive, so their paths curve in rather than travel straight.
- Arrival sweeps outward from the subject in soft patches, and each particle eases in and out of its flight. The result reads as a calm gathering, not an explosion played backwards.
- Every dot carries the patch of image under its home. Once the dots are home they swell until they overlap, and the picture is continuous with no crossfade.
- Particles in flight run slightly bright, with a faint glow, like motes catching light. With reduced motion the flow stops drifting and particles follow progress directly.
Usage
Example
<ImageParticles progress={job.progress} src={job.url} alt={prompt} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| progress | number | — | 0–100. At 100 every particle is home. |
| src | string | — | Final image URL. Same-origin or CORS-enabled. |
| alt | string | — | Alt text. |
| cells | number | 40 | Particles across the width. Rows follow the aspect ratio. |
| className | string | — | Size it here; the default is w-64 at 3:4. |