Love This UI? Help It Grow and Reach More Developers Worldwide — Check out

3D Card Component

A highly customizable 3D card component with interactive hover effects, glow animations, and parallax transformations.

Examples

Features

  • 3D Rotation Effects: Smooth mouse-following rotation on X and Y axes
  • Dynamic Glow: Radial gradient glow that follows mouse position
  • Shadow Animation: Realistic shadow that responds to card rotation
  • Parallax Content: Optional 3D depth effect for card content
  • Background Images: Support for dynamic background images with hover transitions
  • Accessibility: Full keyboard navigation and screen reader support
  • Performance Optimized: Uses React.memo and useCallback for optimal rendering

How to Use

Basic Usage

Loading...

With Image Content

Loading...

Advanced Configuration

Loading...

Minimal Configuration

Loading...

Props

PropTypeDefaultDescription
childrenReactNode-Content to be rendered inside the card
classNamestring''Additional CSS classes for the card container
maxRotationnumber10Maximum rotation angle in degrees (0-45 recommended)
glowOpacitynumber0.2Opacity of the glow effect (0-1)
shadowBlurnumber30Blur radius for the card shadow in pixels
parallaxOffsetnumber403D depth offset for content in pixels
transitionDurationstring'0.6s'CSS transition duration for animations
backgroundImagestringnullnull
enableGlowbooleantrueEnable/disable the radial glow effect
enableShadowbooleantrueEnable/disable the dynamic shadow effect
enableParallaxbooleantrueEnable/disable the 3D parallax effect for content