164

Flip Card

Hovering a card flips it in 3D to show more info on the back

Card & groupHover & clickUI interactionCSSCSS 3D

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A row of portfolio cards with the key visual and title on the front; on mouse enter the card flips 180° in 3D around its vertical axis to the back, which shows a call to action such as “View project →”, with a slight overshoot; on leave it flips back. About 0.7 s. (CSS: perspective on the outer layer, the inner layer transform-style:preserve-3d + transition transform, rotateY(180deg) on hover; both faces backface-visibility:hidden, the back pre-rotated rotateY(180deg))

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

  1. Tap “Copy AI prompt”.
  2. 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).
  3. 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 →