UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

Magic UI/Animated Shiny Text

Text effects
1 of 25
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

25 versions·5 librariesCompare all text animations →

  • Animated Shiny Text
  • React Bits
  • Text Animate
  • Text Gif
  • Animated Shiny Button
  • Blur In Text
  • Dock Text
  • Fade Text
  • Font Weight Text
  • Gradual Spacing Text
  • Letter Pull Up Text
  • Multi Direction Slide Text
  • Scale Letter Text
  • Seperate Away Text
  • Wavy Text
  • Word Pull Up Text
  • Ai Text Loading
  • Cradle Text
  • Plucked Text
  • Swoosh Text
  • Animated Gradient Text
  • Comic Text
  • Dia Text Reveal
  • Hyper Text
  • Kinetic Text

Animated Shiny Text

A light glare effect which pans across text making it appear as if it is shimmering.

npx shadcn@latest add https://magicui.design/r/animated-shiny-text.json
Open in v0 Docs Repo
Library
Magic UI
License
MIT
Stack
React · Tailwind CSS · radix
Packages
@radix-ui/react-icons
Size
43 lines
Demo
From Magic UI

Code

registry/magicui/animated-shiny-text.tsx

import {
  type ComponentPropsWithoutRef,
  type CSSProperties,
  type FC,
} from "react"

import { cn } from "@/lib/utils"

export interface AnimatedShinyTextProps extends ComponentPropsWithoutRef<"span"> {
  shimmerWidth?: number
}

export const AnimatedShinyText: FC<AnimatedShinyTextProps> = ({
  children,
  className,
  shimmerWidth = 100,
  ...props
}) => {
  return (
    <span
      style={
        {
          "--shiny-width": `${shimmerWidth}px`,
        } as CSSProperties
      }
      className={cn(
        "mx-auto max-w-md text-neutral-600/70 dark:text-neutral-400/70",

        // Shine effect
        "animate-shiny-text bg-size-[var(--shiny-width)_100%] bg-clip-text bg-position-[0_0] bg-no-repeat [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]",

        // Shine gradient
        "bg-linear-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80",

        className
      )}
      {...props}
    >
      {children}
    </span>
  )
}

More like this

Animated Gradient Text

Magic UI·Text effects

Dia Text Reveal

Magic UI·Text effects

Toolbar Dynamic

Motion Primitives·Navigation

Toolbar Expandable

Motion Primitives·Navigation

Sparkles Text

Magic UI·Text effects

Sheet

shadcn/ui·Overlays

Iphone

Magic UI·Media & 3D

Carousel

HextaUI·Media & 3D

Text Reveal

Magic UI·Text effects

Dropdown Menu

shadcn/ui·Overlays

Button

shadcn/ui·Buttons

Animated Shiny Button

Eldora UI·Text effects

Textarea

shadcn/ui·Text effects

Side Panel

Cult UI·Other

Input

shadcn/ui·Inputs & forms