Morphing Words
Text EffectsWords dissolve through a soft blur while the headline keeps its width.
Crisp typography meets a soft, fading reflection beneath the baseline.
Copy the component and its CSS module into your project.
Matches your current playground settings.
import ReflectionText from "./ReflectionText";export default function Example() {return (<ReflectionTexttext={"Still waters."}color={"#d9d2df"}reflectionOpacity={0.3}distance={8}/>);}
Use a short headline through text and set font size or weight with style. The reflection occupies normal layout space beneath the text.
The mirrored copy is decorative and hidden from assistive technology. Lower reflectionOpacity on light surfaces and adjust distance to separate the two baselines.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| text | string | No | "" | Text to display and reflect. |
| color | string | No | "#d9d2df" | Text and reflection colour. |
| reflectionOpacity | number | No | 0.3 | Reflected text opacity from zero to one. |
| distance | number | No | 8 | Space between the original text and reflection in pixels. |
| className | string | No | "" | Additional classes on the root element. |
| style | CSSProperties | No | undefined | Inline styles for sizing, typography and appearance. |