Lazy-ui
Lazy-ui
registry components
DocsComponentsBlocksChangelog
GitHub0Install
Navigation11 groups
Get StartedDocs
  • Introduction
  • Installation
  • Changelog
  • All Components
Background13 items
  • Wave CipherNew
  • Horizon CipherNew
  • Orbit CipherNew
  • Orbit BloomNew
  • Orbit MeshNew
  • Aurora MeshNew
  • Chroma FlowNew
  • Prism DriftNew
  • Shadow MeshNew
  • Slime BackgroundNew
  • NeumorphismNew
  • Ripple SurfaceNew
  • Liquid ChromeNew
Text Animate7 items
  • Shiny Text
  • Text WarpNew
  • Text RiseNew
  • Text SpinNew
  • Text ScrambleNew
  • Spinning TextNew
  • Text FlipNew
Animate6 items
  • Counter
  • Liquid RevealNew
  • Liquid TransitionNew
  • Matrix GridNew
  • Particle HaloNew
  • Bling TransitionNew
Effects2 items
  • Reveal Animate
  • Circle CipherNew
Forms2 items
  • Switch
  • Checkbox
Buttons3 items
  • Copy Button
  • GitHub Stars Button
  • Glass ButtonNew
Feedback1 item
  • Progress
Navigation1 item
  • Animated Tabs
Overlay1 item
  • Animate Tooltip
Device Mocks1 item
  • iPhoneNew

Spinning Text

Text laid along a circular SVG path that rotates continuously — supports center content, direction, and reversal.

spinning-text
BUILD LAZILY • BUILD LAZILY •BUILD LAZILY • BUILD LAZILY • ★
0px

Customize

Edit props; preview updates instantly.

Customize
Radius (ch)
5.0ch
Duration (s)
14.0s

Props

Props accepted by SpinningText.

PropTypeDefaultDescription
childrenstring—Letters laid evenly around the ring. The string is also mirrored into an `sr-only` span for screen readers.
durationnumber10Seconds per full rotation (minimum 0.5).
reversebooleanfalseSpin counter-clockwise instead of clockwise.
radiusnumber5Ring radius in `ch` units, so the circle scales naturally with the inherited font-size. The wrapper auto-sizes off this value.
centerReactNode—Content rendered at the dead center (icon, badge, button). Sits above the spinning ring and ignores pointer events.
classNamestring—Extra class names on the wrapper. Font-size and color cascade into each glyph via normal CSS inheritance.

Installation

Choose CLI for the one-line shadcn install, or copy the file manually.

npx shadcn@latest add https://2lazyui.com/r/spinning-text.json

Usage

Import the component and drop it into a render.

demo.tsx14 lines
import { SpinningText } from "@/components/lazy-ui/text-animate/spinning-text";

export function Demo() {
  return (
    <SpinningText
      duration={14}
      radius={5}
      center={<span className="text-2xl text-neutral-100">★</span>}
      className="text-[11px] tracking-[0.18em] text-neutral-200"
    >
      BUILD LAZILY • BUILD LAZILY •
    </SpinningText>
  );
}
Registryv0.1
Animated TabsNavigationCopy ButtonButtonsGitHub Stars ButtonButtonsReveal AnimateEffectsCounterAnimateShiny TextText AnimateText WarpText AnimateText RiseText AnimateText SpinText AnimateText ScrambleText AnimateSpinning TextText AnimateText FlipText AnimateProgressFeedbackSwitchFormsGlass ButtonButtonsCheckboxFormsiPhoneDevice MocksCircle CipherEffectsLiquid RevealAnimateLiquid TransitionAnimateWave CipherBackgroundHorizon CipherBackgroundOrbit CipherBackgroundOrbit BloomBackgroundOrbit MeshBackgroundMatrix GridAnimateParticle HaloAnimateAurora MeshBackgroundChroma FlowBackgroundPrism DriftBackgroundShadow MeshBackgroundSlime BackgroundBackgroundNeumorphismBackgroundRipple SurfaceBackgroundLiquid ChromeBackgroundBling TransitionAnimateAnimate TooltipOverlayPricing · ClassicBlocks · PricingPricing · BentoBlocks · PricingPricing · EditorialBlocks · PricingPricing · MatrixBlocks · PricingPricing · UsageBlocks · Pricing
Browse all 42 components
Up nextRoadmap
DialogPlanned
TabsPlanned
TooltipPlanned
CommandPlanned
Help the project
Star on GitHubSuggest a componentRead the DESIGN.md