BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Animate UI/components-backgrounds-gradient

Gradient Background

animate-ui/components-backgrounds-gradient
FreeComponent

A background component featuring a subtle yet engaging animated gradient effect, smoothly transitioning colors to enhance visual depth.

Install it

npx shadcn@latest add https://animate-ui.com/r/components-backgrounds-gradient.json

Source

registry/components/backgrounds/gradient/index.tsxanimate-ui.com/r/components-backgrounds-gradient.json
1'use client';
2
3import * as React from 'react';
4import { motion, type HTMLMotionProps } from 'motion/react';
5
6import { cn } from '@/lib/utils';
7
8type GradientBackgroundProps = HTMLMotionProps<'div'>;
9
10function GradientBackground({
11 className,
12 transition = { duration: 15, ease: 'easeInOut', repeat: Infinity },
13 ...props
14}: GradientBackgroundProps) {
15 return (
16 <motion.div
17 data-slot="gradient-background"
18 className={cn(
19 'size-full bg-gradient-to-br from-blue-500 via-purple-500 to-pink-500 bg-[length:400%_400%]',
20 className,
21 )}
22 animate={{ backgroundPosition: ['0% 50%', '100% 50%', '0% 50%'] }}
23 transition={transition}
24 {...props}
25 />
26 );
27}
28
29export { GradientBackground, type GradientBackgroundProps };

What it pulls in

npm packages

  • motion

Files it writes

  • registry/components/backgrounds/gradient/index.tsx

Facts

Registry
Animate UI
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

animate-ui.com imskyleen/animate-ui on GitHub Raw registry item This item as JSON

More from Animate UI

All 580 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Avatar Groupcomponents-animate-avatar-groupAnimate UIComponentsFree1 dep
Codecomponents-animate-codeAnimate UIComponentsFree1 dep
Code Tabscomponents-animate-code-tabsAnimate UIComponentsFree1 dep
Cursorcomponents-animate-cursorAnimate UIComponentsFreeno deps
GitHub Stars Wheelcomponents-animate-github-stars-wheelAnimate UIComponentsFree1 dep
Tabscomponents-animate-tabsAnimate UIComponentsFreeno deps
Tooltipcomponents-animate-tooltipAnimate UIComponentsFree1 dep
Bubble Backgroundcomponents-backgrounds-bubbleAnimate UIComponentsFree1 dep
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