Variable Shadow Text
Interactive text that transitions between weight, slant, and shadow depth using variable font settings.
Preview
HOVER ME
Reverse Mode
In reverse mode, the text starts flat and expands/pops out on hover.
EXPAND
Custom Colors
CYBER
Installation
Use the CLI to add this component to your project.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | - | The text to display. |
shadowColors | string[] | ['#07bccc', ...] | Array of 5 colors for the shadow layers. |
strokeColor | string | #d6f4f4 | Color of the text stroke. |
reverse | boolean | false | If true, effect expands on hover instead of collapsing. |
className | string | - | Class for the text element (mainly font-size). |