gamma logo

1

ShadCN Animated UI

Animated ShadCN UI SVG with glowing masked paths, motion shapes, and dynamic shimmering text with customizable props.

Installation

pnpm dlx shadcn@latest add @gammaui/shadcn-animated-ui
global.css
.shadcn { offset-anchor: 10px 0px; animation: shadcn-line-animation; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(0.75, -0.01, 0, 0.99); } .shadcn-line-1 { offset-path: path("M 35 14 h 25 q 5 0 5 5 v 23 q 0 5 5 5 h 15"); animation-duration: 4s; animation-delay: 1s; } .shadcn-line-2 { offset-path: path("M 30 50 h 52"); animation-duration: 3.5s; animation-delay: 1.5s; } .shadcn-line-3 { offset-path: path("M 36.3 87 h 24 q 5 0 5 -5 v -24 q 0 -5 5 -5 h 15"); animation-duration: 4.5s; animation-delay: 2s; } .compBox { animation: comp-box-spin 4.5s ease-in-out infinite; } @keyframes comp-box-spin { 0% { transform: rotate(0deg); } 50% { transform: rotate(8deg); } 100% { transform: rotate(0deg); } } @keyframes shadcn-line-animation { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }

Props

PropTypeDefaultDescription
classNamestring—Wrapper class
circleTextstring"Registry"Text inside the circle
triangleTextstring"AI"Text inside triangle
diamondTextstring"Registry"Bottom diamond text
animatedTextstring"npx shadcn add"Glowing command text
animatedBoxTextstring"Sidebar"Box label text
hintTextstring"(components.json)"Small hint under box
appNamestring"Your App"App name text