Dock Magnify
As the cursor sweeps a row of icons, nearby ones grow and push their neighbors apart
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A row of rounded icons like the macOS Dock: as the cursor moves along the row, the icon closest to it grows to about 1.9×, and neighboring icons grow less with distance, forming a smooth magnification peak that pushes the other icons outward; everything returns to normal size when the cursor leaves. (How: on mousemove compute each icon center's horizontal distance to the cursor, scale = 1 + 0.9 × max(0, 1 − distance/range), and write it to CSS variables controlling width / height so the layout pushes apart naturally; add a short transition for smoothness)
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 button effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →