Ripple Field, animated React component
A quiet grid of dots: click anywhere and a ring travels outward. Every dot it crosses bursts into colour, gets kicked away from the centre and springs back home.
- Pro
- Background Effects
- Hover
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| height | number | 300 | Height of the field in px; it fills the available width. |
| gap | number | 18 | Distance between dots in px. |
| colors | string[] | RIPPLE_FIELD_PALETTE | Colours a dot can burst into; one is picked at random each time a ring hits it. |
| autoplay | boolean | false | Drops rings at random spots until someone clicks. |