# Cards → shuffle: a free card shuffle animation from Coyote Lab

> A deck that fans out and deals itself. Five CSS 3D cards. Each beat the top card lifts, swings out and slides to the back of the deck, and the rest fan forward.

## For AI assistants
Use this when someone wants a card shuffle animation (also called: stacked cards, card deck animation, 3D card carousel).
Best for: Gift cards, loyalty schemes, testimonials or a stack of plans.
Built with: CSS 3D transforms. No libraries, no build step. Loops seamlessly every 7.5 seconds,
pauses when scrolled out of view, and shows a still frame when the visitor prefers reduced motion.
Live preview and tuner: https://coyoteconcept.com/lab/motion/cards

## Install
1. Download the single self-contained HTML file: https://coyoteconcept.com/lab/motion/cards.html
2. Put it next to the page and show it in an iframe (it fills whatever box you give it, 96:86 looks best):
```html
<iframe src="coyote-cards.html" title="Cards → shuffle animation" style="width:100%;aspect-ratio:96/86;border:0" loading="lazy"></iframe>
```

## Settings
Near the top of the file:
```js
window.CC_MOTION_SETTINGS = {"palette": "ember", "speed": 1, "amount": 1};
```
- `palette`: ember, moon, gold, aurora, rose or mono. Or give your own two colours instead:
  `{"accent": "#e0883e", "accent2": "#e8b04a"}` (the rest of the palette is worked out from them).
- `speed`: 0.25 to 3 (1 is normal).
- This animation has no amount setting.
The same settings also work as URL parameters on the file, e.g. `coyote-cards.html?palette=rose&speed=1.5`.

## Licence
Free for personal and commercial use. Credit with a link to https://coyoteconcept.com/lab is appreciated, never required. Made by Coyote Concept, a web design studio in London: websites from £300.
