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 70 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.
Frequently asked
- Does Card Fan work with React and Vue?
- Card Fan ships as React (Next.js included), Vue 3 (Nuxt included), plain HTML/CSS/JS - the same animation in each format. The React version uses the official useGSAP hook with cleanup handled; the Vue version is a real single-file component with <script setup>.
- Do I need GSAP to use Card Fan?
- Yes. Card Fan is built on GSAP directly, and GSAP has been 100% free for commercial use, including every plugin, since version 3.13. The component page lists exactly what to install.
- Can I customize Card Fan without editing code?
- Card Fan exposes 13 tunable controls in the Customize panel on this page - drag the values, watch the live preview respond, and the code you copy carries your exact settings.
- Is Card Fan free?
- Card Fan is part of the Annnimate Library, a paid subscription (from EUR 249/year). The live preview and customization run free on this page; the paste-ready code is for members.
- Can I use Card Fan in client projects?
- Yes. The Annnimate license covers commercial and client work - ship Card Fan on as many projects as you build, with no attribution required.
- Does Card Fan respect prefers-reduced-motion?
- Yes. Every Annnimate component handles prefers-reduced-motion via gsap.matchMedia, so users who opt out of motion get an effectively instant, readable state.
