04.13 · Micro-Interactions

Checkmark Draw

A tick draws itself in a circle once a task succeeds. Best for forms.

Click it

Click or tap Submit (Reset brings it back), or press Show me.

Try it

Change a setting, then try it again or press Show me.

Result

Error draws a red X and gives it a shake.

Speed

How long the lines take to draw.

Line thickness

Thick looks confident; thin looks precise.

More optionsFewer options

Feel

Smooth slows at the end, like a pen lifting.

Tick color

The circle and tick; the X stays red.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a success check mark that draws itself to [the form or action that just finished]. After the visitor submits, show a short loading state in the button, then draw a circle and a tick inside it as if by hand: the circle first, then the tick, starting just before the circle closes. For a failure, draw a red X the same way and give it a short shake. Let the button turn green or red to match. If the visitor has reduced motion turned on, show the finished check or X at once. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Form success
  • Payments
  • Finished steps

Avoid on

  • Frequent small saves