Components & UI Animation — Reference

Checklist Completion

The Checklist Completion is a CSS animation component that a checklist with animated checkmarks and strike-through text for satisfying task completion. Use in onboarding checklists, to-do lists, or progress trackers where visual completion matters. It ships as self-contained HTML and CSS with no external dependencies, making it drop-in ready for any modern web project regardless of framework or build system.

checklistcompletecheckmarkstrike-throughprogress

When to use the Checklist Completion

Performance characteristics

How it compares

Unlike equivalent JavaScript implementations, the Checklist Completion does not require any runtime library — there is nothing to install, bundle, or load asynchronously.

Compared to animated GIFs or video embeds, this CSS component is resolution-independent, theme-able via CSS custom properties, and weighs a fraction of the equivalent media file.

Source code

CSS

css
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: #a1a1aa; }
  .item.done { color: #71717a; }
  .item.done .text { text-decoration: line-through; }
  .box { width: 22px; height: 22px; border: 2px solid #3f3f46; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s ease; }
  .item.done .box { background: #22c55e; border-color: #22c55e; }
  .box svg { stroke: #fff; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.3s 0.1s ease-out; }
  .item.done .box svg { stroke-dashoffset: 0; }
  body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0f0f0f; }

HTML

html
<div class="item" onclick="this.classList.toggle('done')"><div class="box"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke-width="2"><path d="M5 12l5 5 9-9"/></svg></div><span class="text">Complete onboarding</span></div>

Full source

html
<!DOCTYPE html>
<html><head><style>
  .item { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: #a1a1aa; }
  .item.done { color: #71717a; }
  .item.done .text { text-decoration: line-through; }
  .box { width: 22px; height: 22px; border: 2px solid #3f3f46; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s ease; }
  .item.done .box { background: #22c55e; border-color: #22c55e; }
  .box svg { stroke: #fff; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.3s 0.1s ease-out; }
  .item.done .box svg { stroke-dashoffset: 0; }
  body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0f0f0f; }
</style></head><body>
  <div class="item" onclick="this.classList.toggle('done')"><div class="box"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke-width="2"><path d="M5 12l5 5 9-9"/></svg></div><span class="text">Complete onboarding</span></div>
</body></html>

Frequently asked questions

How do I add the Checklist Completion to my project?

Copy the full source code from the code block on this page. Paste the <style> block into your stylesheet (or a <style> tag in your HTML head) and the HTML markup into your template. No npm install or build step is required — the animation is self-contained. To customize colors, speed, or size, use Grepped's workspace at grepped.dev/animations/components-ui/checklist-completion.

Is the Checklist Completion free to use?

Yes. All Grepped preset animations are free to use in personal and commercial projects. You may copy, modify, and redistribute the code without attribution. The only limitation is that you may not resell the presets themselves as part of a competing animation library.

Does the Checklist Completion work on mobile browsers?

Yes. The Checklist Completion uses standard CSS animations and transforms that are supported in all modern mobile browsers — Chrome for Android, Safari on iOS 9+, Samsung Internet, and Firefox for Android. Where JavaScript is used for interactivity (e.g. cursor effects), it falls back gracefully on touch devices.

Can I customize the Checklist Completion's colors, speed, or size?

Yes. Open the live customization workspace at grepped.dev/animations/components-ui/checklist-completion to adjust the animation with real-time sliders, color pickers, and toggles — no code required. For deeper changes, the source code uses CSS custom properties (variables) so you can edit them directly in your stylesheet.

Want to customize this animation or generate a new one from a text prompt?

Open in Workspace — it's free