220

Focus Dim Siblings

Hovering a card lifts it while the others fade and shrink

Card & groupHover & clickUI interactionCSS:has()

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A row of cards; when the mouse moves onto one, it lifts slightly and scales to 1.04× while the other cards fade, blur slightly, desaturate and shrink to 95%, focusing attention on the current one; leaving the row restores everything. About 0.45 s, ease-out. (CSS: on container :hover, lower opacity on .card:not(:hover) and add filter:blur(1px) saturate(.6) and scale(.95); the hovered card gets translateY + scale; :has() can support keyboard focus)

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 →