Animated Shiny Text
magicui/animated-shiny-textFreeComponent
A light glare effect which pans across text making it appear as if it is shimmering.
Live preview
live · rendered by the registry
Rendered by magicui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://magicui.design/r/animated-shiny-text.jsonSource
1import {2 type ComponentPropsWithoutRef,3 type CSSProperties,4 type FC,5} from "react"67import { cn } from "@/lib/utils"89export interface AnimatedShinyTextProps extends ComponentPropsWithoutRef<"span"> {10 shimmerWidth?: number11}1213export const AnimatedShinyText: FC<AnimatedShinyTextProps> = ({14 children,15 className,16 shimmerWidth = 100,17 ...props18}) => {19 return (20 <span21 style={22 {23 "--shiny-width": `${shimmerWidth}px`,24 } as CSSProperties25 }26 className={cn(27 "mx-auto max-w-md text-neutral-600/70 dark:text-neutral-400/70",2829 // Shine effect30 "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]",3132 // Shine gradient33 "bg-linear-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80",3435 className36 )}37 {...props}38 >39 {children}40 </span>41 )42}
Files it writes
More from magicui
All 247 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Androidandroid | magicui | Components | Free | no deps | |
| Animated Beamanimated-beam | magicui | Components | Free | 1 dep | |
| Animated Circular Progress Baranimated-circular-progress-bar | magicui | Components | Free | no deps | |
| Animated Gradient Textanimated-gradient-text | magicui | Components | Free | no deps | |
| Animated Grid Patternanimated-grid-pattern | magicui | Components | Free | 1 dep | |
| Animated Listanimated-list | magicui | Components | Free | 1 dep | |
| Theme Toggleranimated-theme-toggler | magicui | Components | Free | 1 dep | |
| Aurora Textaurora-text | magicui | Components | Free | no deps |
