Capítulo 4 de 11

Chapter 4: Cards & Grids

Core Idea

Card components and grid layouts with hover/tilt/perspective interactions — the largest category in the free catalogue, covering everything from simple hover states to full 3D card physics.

Reference Table

NamePurposeInstall
3D Card EffectPerspective tilt that elevates card elements on hovernpx shadcn@latest add @aceternity/3d-card-effect
3D Animated PinGradient pin that animates on hover, for product linksnpx shadcn@latest add @aceternity/3d-pin
3D GlobeInteractive globe with tooltips/avatar pinsnpx shadcn@latest add @aceternity/3d-globe
3D Marquee3D grid marquee, good for testimonial/hero showcasesnpx shadcn@latest add @aceternity/3d-marquee
Bento GridSkewed grid layout with title/description/header slotsnpx shadcn@latest add @aceternity/bento-grid
Card SpotlightRadial-gradient spotlight revealed on a cardnpx shadcn@latest add @aceternity/card-spotlight
Card StackCards stack and cycle on an interval — good for testimonialsnpx shadcn@latest add @aceternity/card-stack
CardsA generic set of card layouts for varied use casesnpx shadcn@latest add @aceternity/cards-free
Comet Card3D tilt card (as seen on Perplexity Comet)npx shadcn@latest add @aceternity/comet-card
CompareSlide/drag comparison between two imagesnpx shadcn@latest add @aceternity/compare
Direction Aware HoverHover effect that reacts to the cursor's entry directionnpx shadcn@latest add @aceternity/direction-aware-hover
Draggable CardTiltable, draggable card with bounce-back on releasenpx shadcn@latest add @aceternity/draggable-card
Evervault CardHover effect revealing encrypted-looking text + gradientnpx shadcn@latest add @aceternity/evervault-card
Expandable CardsCards that expand on click to show more detailnpx shadcn@latest add @aceternity/expandable-card
Focus CardsHover a card to focus it and blur the restnpx shadcn@latest add @aceternity/focus-cards
Glare CardHover glare effect (as seen on Linear)npx shadcn@latest add @aceternity/glare-card
Glowing Background Stars CardCard with animated background starsnpx shadcn@latest add @aceternity/glowing-stars-effect
Glowing EffectBorder glow that adapts to any container/card (as seen on Cursor)npx shadcn@latest add @aceternity/glowing-effect
GitHub GlobeInteractive globe animation (as seen on GitHub's homepage)npx shadcn@latest add @aceternity/github-globe
Hover EffectSliding highlight that follows the currently hovered cardnpx shadcn@latest add @aceternity/card-hover-effect
Layout GridGrid where clicking an item animates a shared-layout transitionnpx shadcn@latest add @aceternity/layout-grid
LensZoom lens over an image/video/any contentnpx shadcn@latest add @aceternity/lens
Parallax Grid ScrollTwo-column grid scrolling in opposite directionsnpx shadcn@latest add @aceternity/parallax-scroll
Pixelated CanvasConverts an image to a pixelated canvas with mouse distortionnpx shadcn@latest add @aceternity/pixelated-canvas
SVG Mask EffectCursor-driven mask reveal over hidden contentnpx shadcn@latest add @aceternity/svg-mask-effect
Wobble CardCard that translates/scales on mouse movementnpx shadcn@latest add @aceternity/wobble-card

Key Takeaways

  1. For a feature/pricing grid with mixed content sizes, start with Bento Grid rather than hand-rolling a CSS grid.
  2. Multiple entries solve "make this card interesting on hover" (Direction Aware Hover, Evervault Card, Glare Card, Wobble Card, Card Spotlight) — pick one per card type, don't combine two hover treatments on the same card.
  3. 3D Globe / GitHub Globe need three + @react-three/fiber as extra peer dependencies beyond the standard Motion stack.

Connects To

  • ch002 (Backgrounds & Ambient Effects): several of these effects are card-scoped versions of full-page backgrounds.
  • ch008 (Carousels & Testimonials): Card Stack overlaps with testimonial use cases.