146

Loading Button

The button shrinks into a spinning circle, then shows a check and restores

ButtonHover & clickSwitchApp UIUI interactionGSAPLoading state

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

When the “Submit” button is tapped, it presses down slightly (to 95%), the label fades out and the button's width shrinks into a circle (about 0.4 s) with a spinning loader inside; when done, the loader disappears and a check mark is drawn in, with a small pop; after about 0.8 s the button expands back to its width and the label fades in. Prevents double clicks and clearly shows the state. (GSAP: a timeline tweening width, spinner rotation and a DrawSVG check in turn; use fixed units for the width fromTo)

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 →