Pollen Trail
Moving the pointer sheds grains of pollen, more the further it goes, and they drift on slow swirls of air, sink a little and glint as they turn in the light. A click is a tap on a flower head and puffs out a small cloud; it never takes a click or a hover from what's underneath.
Needs: None. A 2D canvas, read from window pointer events.
Customize
scope
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | string | "#e8b84a" | The pollen's colour; it glints toward a lighter shade. |
| density | number | 9 | Grains shed per 100 px the pointer travels. |
| cell | number | 2 | Size of one grain in px; grains are one or two of these square. |
| scope | "parent" | "window" | "parent" | Over its parent (position: relative), or over the whole window. |
| burst | boolean | true | A click puffs out a cloud of pollen. |
| className | string | – | Class on the layer. |
| style | CSSProperties | – | Style on the layer. |