Sitewright

Circular text

Text set around a ring that turns slowly; hover can speed it up, slow it, reverse it or pause it, and a centre slot holds an icon or label.

What it is for

Rotating badge beside a hero heading, a 'scroll down' or 'new' sticker, or a footer seal.

Use it

1 · site.json
"effects": { "components": ["circular-text"] }
or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components circular-text
2 · import it
import { CircularText } from '@/components/fx/ui';

Files

  • components/fx/ui/CircularText.tsx
  • components/fx/ui/_t2.ts
  • components/fx/ui/_text-a-kit.ts
  • ui-circular-text.css styles

Source

Original to Sitewright. MIT licensed.

Credits and licences: third-party notices.

Accessibility

  • Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
  • Reduced motion. With prefers-reduced-motion on, animation settles to its finished state at once.
  • Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.