NK

Search

Search pages, posts, and components

All components

Animated Text Logo

Typography

An outlined wordmark with a pointer-tracking glow and a looping shimmer.

NAWALNAWAL

Installation

Add it with the shadcn CLI:

$pnpm dlx shadcn@latest add https://nawalkattel.com.np/r/animated-text-logo.json
Or install manually
  1. 1. Install dependencies

    pnpm add motion clsx tailwind-merge
  2. 2. Copy the component source into components/library/animated-text-logo.tsx

Props

PropTypeDefaultDescription
textstring - The wordmark.
baseColorstring"var(--primary)"Stroke colour of the outlined text.
shimmerDurationnumber4.5Seconds per shimmer pass; 0 disables it.
radiusnumber320Radius of the pointer glow.

Accessibility

  • The SVG carries role=img with an aria-label, so the word is announced.
  • Gradient ids are per-instance, so two logos cannot fight over them.
  • Shimmer stops under prefers-reduced-motion.
  • Scales with its container via viewBox rather than a fixed font size.

Dependencies

motionclsxtailwind-merge