BranchingPRO
A line grows and forks; dead branches fade, the surviving path lights up to its tip, then the tree dissolves and regrows differently.
Code
2 files · 246 lines of TypeScriptPRO
Branching is part of Pro
Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.
Motion notes
- Reasoning as a search: the line explores several branches at once, then commits. Dead branches fade from the leaves inward while light travels up the chosen path.
- Every branch shoots out and slows as it reaches its fork, and growing tips glow, so the eye follows the frontier rather than the whole tree.
- Each cycle grows a new seeded tree (spread, lean, bow and pruning all vary), fitted to the canvas. Pass a different seed to neighbouring instances so they never grow in step.
- The dissolve travels up from the root like the growth played out. Reduced motion shows the pruned tree with its path lit and a ring at the conclusion.
Usage
Example
<StatusPill icon={<BranchTree size={32} />} label="Reasoning" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 32 | Size in px. |
| depth | number | 4 | Levels of forking, 2–5. Use 3 at 24px. |
| cycle | number | 5 | Seconds per grow, prune, resolve and dissolve. |
| seed | number | 0 | Offsets the sequence of trees, so neighbouring instances grow differently. |
| className | string | — | Classes for the canvas. |