Background
Etheral Shadow
Animated shadow overlay effects with SVG filters and noise textures. Perfect for React applications requiring atmospheric backgrounds with Next.js integration and TypeScript support.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/etheral-shadow.json
npx shadcn@latest add https://www.shadcn.io/registry/etheral-shadow.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/etheral-shadow.json
bunx shadcn@latest add https://www.shadcn.io/registry/etheral-shadow.json
Features
- Advanced SVG filters creating realistic shadow distortion with animated turbulence effects
- Configurable animations using Framer Motion with adjustable speed and scale parameters
- Optional noise texture overlay adding visual depth and atmospheric grain effects
- Customizable RGBA colors supporting any color value with transparency control
- Flexible content rendering allowing any React content within the shadow effect
- TypeScript support with complete interface definitions for reliable integration
- Performance optimized using efficient animation loops with proper cleanup
- Responsive design adapting automatically to container dimensions and sizing modes
Examples
Purple Variant
Without Noise
Use Cases
This free open source React component works well for:
- Hero sections - Atmospheric overlay effects for landing pages built with Next.js
- Creative portfolios - Artistic shadow effects showcasing design work using TypeScript
- Gaming interfaces - Immersive background effects for game menus and screens
- Product presentations - Dramatic overlay effects highlighting key features using shadcn/ui
- Marketing sites - Eye-catching background effects that maintain content readability
- App onboarding - Engaging visual effects during user registration flows using Tailwind CSS
API Reference
EtheralShadow Props
Prop | Type | Default | Description |
---|---|---|---|
color | string | "rgba(128, 128, 128, 1)" | Background color of the shadow effect |
sizing | "fill" | "stretch" | "fill" | How the mask image should be sized |
animation | AnimationConfig | - | Animation configuration object |
noise | NoiseConfig | - | Noise texture configuration |
className | string | - | Additional CSS classes |
style | CSSProperties | - | Custom inline styles |
children | ReactNode | - | Content to render inside the effect |
AnimationConfig
Prop | Type | Default | Description |
---|---|---|---|
scale | number | - | Animation intensity (1-100) |
speed | number | - | Animation speed (1-100) |
NoiseConfig
Prop | Type | Default | Description |
---|---|---|---|
opacity | number | - | Noise overlay opacity (0-1) |
scale | number | - | Noise texture scale multiplier |
Implementation Notes
- Component uses advanced SVG filters for realistic shadow distortion effects
- Animation parameters: scale (1-100) controls intensity, speed (1-100) controls timing
- Colors must be provided as RGBA values (e.g.,
"rgba(128, 128, 128, 1)"
) - Noise texture can be configured with opacity (0-1) and scale multiplier
- Content is automatically centered within the shadow effect container
- Uses Framer Motion's animate function for optimal performance with hardware acceleration
- Includes automatic cleanup to prevent memory leaks on component unmount
- Compatible with shadcn/ui design system and Tailwind CSS styling
- Consider adding prefers-reduced-motion support for accessibility compliance
Dot Pattern
Customizable SVG dot patterns with optional glow effects. Perfect for React applications requiring structured backgrounds with Next.js integration and TypeScript support.
Fireworks Background
Interactive canvas-based fireworks animation with customizable particles and click-to-launch functionality. Perfect for React applications requiring celebratory backgrounds with Next.js integration and TypeScript support.