Stack Fan Out
A slightly messy stack of cards fans out into a row on hover
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
Five cards in a stack, each tilted at a slightly different angle; when the mouse moves over the stack, the cards fan out left and right from the middle card into a row (outer cards at bigger angles and drooping slightly) with a springy bounce; leaving gathers them back into a stack. About 0.6 s. (CSS: each card uses a CSS variable --i (-2 to 2) to compute translateX, rotate and translateY, with bigger factors on hover, transition cubic-bezier(.3,1.3,.5,1))
When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.
How to use it
- Tap “Copy AI prompt”.
- Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
- The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.
More card & group effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →