BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/magicui/animated-shiny-text

Animated Shiny Text

magicui/animated-shiny-text
FreeComponent

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.json

Source

registry/magicui/animated-shiny-text.tsxmagicui.design/r/animated-shiny-text.json
1import {
2 type ComponentPropsWithoutRef,
3 type CSSProperties,
4 type FC,
5} from "react"
6
7import { cn } from "@/lib/utils"
8
9export interface AnimatedShinyTextProps extends ComponentPropsWithoutRef<"span"> {
10 shimmerWidth?: number
11}
12
13export const AnimatedShinyText: FC<AnimatedShinyTextProps> = ({
14 children,
15 className,
16 shimmerWidth = 100,
17 ...props
18}) => {
19 return (
20 <span
21 style={
22 {
23 "--shiny-width": `${shimmerWidth}px`,
24 } as CSSProperties
25 }
26 className={cn(
27 "mx-auto max-w-md text-neutral-600/70 dark:text-neutral-400/70",
28
29 // Shine effect
30 "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]",
31
32 // Shine gradient
33 "bg-linear-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80",
34
35 className
36 )}
37 {...props}
38 >
39 {children}
40 </span>
41 )
42}

Files it writes

  • registry/magicui/animated-shiny-text.tsx

Facts

Registry
magicui
Type
registry:ui
Access
Free
Files written
1
Theme wiring
ships cssVars
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on magicui magicui.design magicuidesign/magicui on GitHub Raw registry item This item as JSON

More from magicui

All 247 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AndroidandroidmagicuiComponentsFreeno deps
Animated Beamanimated-beammagicuiComponentsFree1 dep
Animated Circular Progress Baranimated-circular-progress-barmagicuiComponentsFreeno deps
Animated Gradient Textanimated-gradient-textmagicuiComponentsFreeno deps
Animated Grid Patternanimated-grid-patternmagicuiComponentsFree1 dep
Animated Listanimated-listmagicuiComponentsFree1 dep
Theme Toggleranimated-theme-togglermagicuiComponentsFree1 dep
Aurora Textaurora-textmagicuiComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex