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.

Loading component...

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

Loading component...

Without Noise

Loading component...

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

PropTypeDefaultDescription
colorstring"rgba(128, 128, 128, 1)"Background color of the shadow effect
sizing"fill" | "stretch""fill"How the mask image should be sized
animationAnimationConfig-Animation configuration object
noiseNoiseConfig-Noise texture configuration
classNamestring-Additional CSS classes
styleCSSProperties-Custom inline styles
childrenReactNode-Content to render inside the effect

AnimationConfig

PropTypeDefaultDescription
scalenumber-Animation intensity (1-100)
speednumber-Animation speed (1-100)

NoiseConfig

PropTypeDefaultDescription
opacitynumber-Noise overlay opacity (0-1)
scalenumber-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