# Animated Checkmark

> A success checkmark that draws itself with an SVG stroke animation.

- Category: [CSS Effects](https://copy-css.com/category/effects)
- Tags: checkmark, success, svg, stroke, draw, animation
- Live preview: https://copy-css.com/snippets/animated-checkmark
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<svg class="checkmark" viewBox="0 0 52 52" aria-label="Success">
  <circle cx="26" cy="26" r="24"/>
  <path d="M15 27l7 7 15-15"/>
</svg>
```

## CSS

```css
/* Remove "infinite" from both animations to play it once */
.checkmark {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: #22c55e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkmark circle {
  stroke-dasharray: 151;
  animation: check-circle 3s ease infinite;
}

.checkmark path {
  stroke-dasharray: 32;
  animation: check-tick 3s ease infinite;
}

@keyframes check-circle {
  0% { stroke-dashoffset: 151; }
  25%, 100% { stroke-dashoffset: 0; }
}

@keyframes check-tick {
  0%, 20% { stroke-dashoffset: 32; }
  35%, 100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .checkmark circle,
  .checkmark path {
    animation: none;
  }
}
```

## Notes

- This CSS Animated Checkmark is 37 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses keyframe animations and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
