Card Fan
A tight stack of image cards that fans open into a slight arc when you hover it, then feathers back to rest when you leave. Hovering an individual card blooms the whole fan a little wider - most from the outer cards, least from the center - while the one you're on lifts to the front.
One of 59 GSAP components in React, Vue and HTML.
On mobile
Take the free components with you.




In React, Vue and HTML, in your inbox, ready when you're back at your desk.
How it's built.
The first version spaced the cards out evenly as they fanned and it looked wrong, more like a shallow V than a real arc. The fix was to let the cards further from the middle drop a lot more than the ones near it, so the tops actually trace a curve. I also rotate each card around its own bottom edge instead of its center, so the tops splay wide while the bases stay tucked together, the way a hand of cards sits. At rest the bases line up flat, and the cards only fall into the arc as the fan opens.
Hover a card and the whole fan blooms open wider - every card leans and spreads a touch further while keeping its place, and the one you're on lifts to the front. How much it blooms depends on which card you're over: the ones near the edge open the fan most, the centre barely at all. Everything springs a hair past its spot and settles, which feels physical rather than mechanical. Past that it's yours: swap in your own images, use any odd number of cards, and dial how far it opens, curves, and blooms.
What you'll need.
Install
- GSAP
Attributes, tips, use cases and full code are part of access.
The preview and provenance stay public. Tune-it docs, the data-anm-* attribute table, real-world use cases and the copy-ready code unlock the moment you sign in.
