Text ring
Playground
Text
Colour
Install
npm install @shavin/fximport { TextRing } from "@shavin/fx";Works with
React
Client component; Next.js and any React 18+ app
Remotion
Frame-exact through FxTimeProvider or time
Usage
A phrase that loops around a tilted ring, with * between repeats.
Component Source
import { TextRing } from "@shavin/fx";
<TextRing text="A DIN CLUB" separator=" * " className="font-semibold" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text* | string | — | The phrase; repeated to fill the path and used as the accessible label. |
| separator | string | " · " | Placed between repeats. |
| duration | number | 20 | Seconds per loop. |
| direction | 1 | -1 | 1 | Direction of travel. |
| tilt | number | 62 | Degrees the path leans back, 0 (face-on) to 90 (edge-on). |
| rotate | number | -18 | Degrees the whole figure turns in the page plane. |
| fontSize | number | 80 | Font size in layout units (the effect is 1000 units wide). |
| color | FxColor | "fg" | Text colour: a theme token (fg, brand, muted), any CSS colour or var(--token), or a { light, dark } pair. |
| tone | FxColor | — | Deprecated: use color. |
| time | number | — | Controlled time in seconds (e.g. frame / fps in Remotion); also read from FxTimeProvider. |
* required