283

Icon Micro-animations

Hovering icons makes each do a fitting little move: the bell rings, heart beats, gear turns, bin opens

Shape & SVGHover & clickUI interactionApp UICSSCSS keyframes

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A row of feature icon buttons (notifications, favorite, settings, delete): on hover the icon's background lights up and each does a fitting micro-animation: the bell swings side to side from its top a few times and stops; the heart fills and beats once; the gear's teeth turn 90° with a slight bounce; the bin's lid tips open from its left end. Adds life to the interface without distracting. (CSS: set transform-origin on specific parts of the SVG icons (remember transform-box:fill-box for elements inside SVG), applying their own keyframes or transform transitions on :hover)

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 shape & svg effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →