Animated Checkbox
Checking pops the box, the check draws like a pen stroke and the item gets a strikethrough
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
Checkboxes in a to-do list: when checked, the box shrinks and then springs a little bigger (about 0.4 s) as it fills; the check mark inside is drawn from bottom left to top right like a pen stroke; the item text on the right fades and gets a strikethrough. Unchecking reverses it. (CSS: hide the native checkbox and draw a custom box with an SVG check; the check path animates stroke-dashoffset from its full length to 0 with stroke-dasharray; :checked + styles switch, the box bounces with scale keyframes; keep a :focus-visible outline for keyboard users)
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 form & control effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →