Size
The component is 100% of its parent's width and height and has no size of its own, so a parent with no height renders nothing. A box at a 16 to 9 ratio suits it.
Props
All optional. The defaults below are what the snippet renders.
| Prop | Values | Default |
|---|---|---|
speed | 0 to 3 | 1 |
pointerAmount | 0 to 2 | 1 |
smoothing | 0.005 to 0.15 | 0.035 |
hue | -180 to 180 | 0 |
saturation | 0 to 2 | 1 |
brightness | 0.4 to 2 | 1 |
opacity | 0.1 to 1 | 1 |
className passes through to the root element.