
Depth Card Stack
Carousels
A fanned, overlapping stack of quote cards where hovering a card lifts and straightens it while its neighbours slide aside.
Hover Stack adds motion to a component that already has a job: cards respond to hover with depth.
Use Hover Stack when a short group of cards should feel playful on exploration. Each built-in card holds a quote, an "Explore" label, and a number; the cards overlap and tilt at rest, so a card's full text is easiest to read once it is hovered and lifted to the front.
The main risk is overlap. At rest the cards cover part of each other by design, and the interaction is mouse-only. Below 1025px wide the component swaps to a plain vertical column of cards, so phones and tablets get readable cards without hover.
import HoverStack from '@/components/effects/hover-stack' const page = () => { return ( <> <HoverStack /> </> )} export default pageAn agency page can use Hover Stack for a row of client quotes. Hovering a card lifts it, straightens it, and pushes the others aside so it can be read in full. The cards are content blocks, not links, so any call to action should sit outside the stack.
Not for mobile-first sections, dense comparison cards, or content where hover depth hides information users need to compare.
Animate transform and shadow with restraint, keep layers small, and avoid large blur or filter effects on the whole card group.
The cards are non-focusable divs that react only to mouse enter and leave, and they contain no links, so keyboard users get no lift; keep any action in links outside the stack. Below 1025px wide the stack is replaced by a plain column of cards. With reduced motion, a hovered card is only raised to the front, with no lift, push, or rotation change.
| Prop | Type | Default | Description |
|---|---|---|---|
cardWidth | number | 280 | Width of each card in pixels. |
cardHeight | number | 360 | Height of each card in pixels. |
overlap | number | 96 | Horizontal overlap between resting cards in pixels. |
pushDistance | number | 235 | Distance neighboring cards are pushed aside on hover. |
hoverLift | number | 30 | Vertical lift applied to the hovered card in pixels. |
spread | number | 24 | Distance cards spread while hovered. |
rotation | number | 7 | Rotation amount applied to stacked items. |
duration | number | 0.35 | Hover animation duration. |
borderColor | color | transparent | Border color shown around the active card. Transparent by default. |
Use it when a card group needs items responding to hover with depth.
The built-in cards are plain divs with no links and no focus handling; only mouse hover activates them. If you need a link, place it outside the stack, or add focusable elements and focus handling to the cards yourself so the lift also works from the keyboard.
It does this already: below 1025px wide the stack is replaced by a single column of full-width cards with no overlap or hover behaviour, so touch users can read every quote.
Yes, when depth makes a small card group feel more crafted. It becomes noise when the card copy, links, or focus states are harder to scan.
With reduced motion, the fanned layout stays, but hovering a card only brings it to the front: there is no lift, push, scale, rotation change, or transition.
Need a custom effect? Tell us what to create.