Typographystable
Halo
Circular text
A phrase spread evenly around a full circle that turns slowly around a centre.
Customize
Ringan equal slice of the turn per character
text2
repeatseparator200 px
sizeTurnone compositor rotation
spin20 s
durationdirectionpausedpauseOnHoverUsage
import { Halo } from "zerogravity/halo"
<Halo
text="Scroll to explore"
/>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
text | string | "Scroll to explore" | Text. |
repeat | number | 2 | Repeat. Range 1 to 6. |
separator | string | " • " | Separator. |
size | number | 200 | Size. Range 120 to 360 px. |
spin | boolean | true | Spin. |
duration | number | 20 | Seconds per turn. Range 4 to 60 s. |
direction | "clockwise" | "counterclockwise" | "clockwise" | Direction. |
paused | boolean | false | Paused. |
pauseOnHover | boolean | false | Pause on hover. |
fontSize | number | fitted | px at full size; fitted to the ring when omitted. |
children | ReactNode | — | Sits in the centre and keeps its own semantics. |
respectReducedMotion | boolean | true | Hold the ring still when the reader prefers reduced motion. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.