Ring Text
Text set around a ring that spins, speeds up or slows on hover, tilts toward the pointer and can be flung.
pixikit.com/docs/effects/ring-text
Customize
Spin duration20s
Direction
Draggable
Hover tilt20deg
Tilt0deg
Size200px
Font size24px
Font weight900
Letter spacing0.00em
Color
Start angle0deg
Fill
Repeat1
Ring
Ring color
Props
19| Name | Type | Default | Description |
|---|---|---|---|
text | string | "" | The text laid out around the ring; end it with a separator for a seamless loop. |
spinDuration | number | 20 | Seconds for one full turn; 0 keeps the ring still until it is dragged. |
onHover | "slowDown" | "speedUp" | "pause" | "goBonkers" | "speedUp" | What happens while the pointer is over the ring; goBonkers also shrinks it a little. |
direction | "clockwise" | "counterclockwise" | "clockwise" | Which way the ring turns. |
draggable | boolean | false | Let people grab the ring and fling it; it coasts, then eases back to its cruise speed. |
hoverTilt | number | 0 | How far the ring tilts in 3D toward the pointer, in degrees; 0 turns it off. |
tilt | number | 0 | Lean the ring back in perspective, in degrees, so it orbits the centre like a planet ring. |
size | number | 200 | The diameter of the ring, in pixels. |
fontSize | number | 24 | The size of the letters, in pixels. |
fontWeight | number | 900 | The weight of the letters. |
letterSpacing | number | 0 | Extra space between letters, in em; applies when fill is off. |
color | string | "" | The colour of the letters and centre content; empty follows the surrounding text. |
startAngle | number | 0 | Where the first letter sits, in degrees clockwise from the top. |
fill | boolean | true | Spread the letters evenly around the whole ring; off keeps natural spacing and leaves a gap. |
repeat | number | 1 | How many times the text repeats around the ring. |
ring | boolean | false | Draw a thin circle just inside the letters. |
ringColor | string | "" | The colour of the inner circle; empty matches the letters. |
children | ReactNode | None | Content shown in the middle of the ring; it tilts with the ring. |
className | string | None |