239

Expanding Button

Normally a round “+” icon; on hover it expands right to show text as the plus rotates

ButtonHover & clickUI interactionApp UICSSCSS max-width

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A floating action button that's normally a circle with just a “+”; on hover it smoothly expands to the right into a pill, revealing a text label (e.g. “New project”) while the plus rotates 90°; the text fades in only after it's half open; leaving collapses it back to a circle. About 0.5 s. (CSS: button overflow:hidden, max-width transitions from the circle's width to a larger value, text opacity with a transition-delay; the plus rotate(90deg))

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 button effects

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

Browse all effects →