BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-glass-ui/animated-background-glass

Animated Background Glass

shadcn-glass-ui/animated-background-glass
FreeComponent

Animated gradient background with floating orbs for glassmorphism UIs. * Provides an immersive atmosphere with theme-aware styling. * * ## Features

Install it

npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/animated-background-glass.json

Source

components/glass/specialized/animated-background-glass.tsxraw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/animated-background-glass.json
1/**
2 * AnimatedBackgroundGlass Component
3 *
4 * Animated gradient background with floating orbs for glassmorphism UIs.
5 * Provides an immersive atmosphere with theme-aware styling.
6 *
7 * ## Features
8 * - Theme-aware gradient background (glass/light/aurora)
9 * - 5 floating animated orbs with blur effects
10 * - Fixed positioning for full-page backgrounds
11 * - Performance-optimized CSS animations (8s cycle)
12 * - Configurable center orb visibility
13 *
14 * ## Orb Configuration
15 * - **Orb 1:** Top-left, 600px, purple/blue tones
16 * - **Orb 2:** Bottom-right, 700px, blue/violet tones, 2s delay
17 * - **Orb 3:** Center-right, 500px, pink/cyan tones, 4s delay
18 * - **Orb 4:** Bottom-left, 450px, cyan/violet tones, 6s delay
19 * - **Orb 5:** Center, 500px, violet (glass theme only by default)
20 *
21 * ## CSS Variables
22 * Customize colors via theme CSS variables:
23 * - `--orb-1` through `--orb-5`: Orb colors (OKLCH with opacity)
24 * - `--bg-from`, `--bg-via`, `--bg-to`: Gradient stops
25 *
26 * @example Basic usage
27 * ```tsx
28 * import { AnimatedBackgroundGlass } from 'shadcn-glass-ui'
29 *
30 * function App() {
31 * return (
32 * <>
33 * <AnimatedBackgroundGlass />
34 * <main className="relative z-10">
35 * Your content here
36 * </main>
37 * </>
38 * )
39 * }
40 * ```
41 *
42 * @example With center orb forced on
43 * ```tsx
44 * <AnimatedBackgroundGlass showCenterOrb={true} />
45 * ```
46 *
47 * @example With reduced opacity
48 * ```tsx
49 * <AnimatedBackgroundGlass className="opacity-50" />
50 * ```
51 *
52 * @example With dark overlay for better contrast
53 * ```tsx
54 * <>
55 * <AnimatedBackgroundGlass />
56 * <div className="fixed inset-0 bg-black/30 z-[1]" />
57 * <main className="relative z-10">Content</main>
58 * </>
59 * ```
60 *
61 * @accessibility
62 * - Uses `aria-hidden="true"` as purely decorative element
63 * - Does not interfere with keyboard navigation
64 * - No interactive elements within the component
65 * - Animation uses CSS (respects `prefers-reduced-motion` when configured)
66 *
67 * @since v1.0.0
68 */
69
70import { forwardRef, type CSSProperties } from 'react';
71import { cn } from '@/lib/utils';
72import { useTheme } from '@/lib/theme-context';
73import '@/glass-theme.css';
74
75// ========================================
76// PROPS INTERFACE
77// ========================================
78
79/**
80 * Props for AnimatedBackgroundGlass component.
81 *
82 * Extends standard div attributes (excluding `style`) for maximum flexibility.
83 * The `style` prop is excluded because the component uses internal inline styles
84// … truncated

Facts

Registry
shadcn-glass-ui
Type
registry:component
Access
Free
Files written
0
Licence
Apache-2.0
First indexed
2026-08-02
Last confirmed
today

Go to the source

yhooi2.github.io artyhoo/shadcn-glass-ui-library on GitHub Raw registry item This item as JSON

More from shadcn-glass-ui

All 76 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alert Glassalert-glassshadcn-glass-uiComponentsFreeno deps
Avatar Glassavatar-glassshadcn-glass-uiComponentsFreeno deps
Badge Glassbadge-glassshadcn-glass-uiComponentsFreeno deps
Base Progress Glassbase-progress-glassshadcn-glass-uiComponentsFreeno deps
Button Glassbutton-glassshadcn-glass-uiComponentsFreeno deps
Card Glasscard-glassshadcn-glass-uiComponentsFreeno deps
Checkbox Glasscheckbox-glassshadcn-glass-uiComponentsFreeno deps
Circular Progress Glasscircular-progress-glassshadcn-glass-uiComponentsFreeno 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