Snappy UI Logo

Animated Card

A dynamic and customizable card component built for modern web experiences.


Basic Usage

Cursor-Following Glow Effect

This card creates a subtle radial glow that follows your cursor position.


Variations

Parallax Card

3D Parallax Layers

This card creates a depth effect with multiple parallax layers that move at different speeds.

Magnetic Card

Magnetic Pull Effect

This card is attracted to your cursor with physics-based spring animation.

Floating Card

Floating Particles Effect

This card features animated particles and a gentle floating animation on hover.

Morph Card

Morphing

Background morphs and follows cursor.

Ripple Card

Ripple

Creates ripple effects on mouse movement

Neon Card

Neon Card

Vibrant neon border glow effect

Holographic Card

Holographic Card

Rainbow holographic effect that changes with angle


Installation

pnpm dlx shadcn@latest add http://snappyui.in/api/registry/glowcard
pnpm dlx shadcn@latest add http://snappyui.in/api/registry/parallaxcard
pnpm dlx shadcn@latest add http://snappyui.in/api/registry/magneticcard
pnpm dlx shadcn@latest add http://snappyui.in/api/registry/floatingcard
pnpm dlx shadcn@latest add http://snappyui.in/api/registry/morphcard
pnpm dlx shadcn@latest add http://snappyui.in/api/registry/ripplecard
pnpm dlx shadcn@latest add http://snappyui.in/api/registry/neoncard
pnpm dlx shadcn@latest add http://snappyui.in/api/registry/holographiccard

Props

NameTypeDefaultCardDescription
strengthnumber40MagneticCardThe strength of the magnetic pull effect
particleCountnumber-FloatingCardThe number of particles for the floating effect
classNamestring-All CardsThis prop is applied to the motion.div element, which represents the card itself and undergoes the motion effect
containerClassNamestring-All CardsThis prop is applied to the outermost div element, which acts as the container for the entire magnetic card effect
neonColorstring#ff00ffMagneticCardThe color of the neon glow effect

On this page