Add a smooth animated counter to Carrd

If you want a live, animated number up-counter you can drop into any site in Carrd, we have the code for you.

Add a smooth animated counter to Carrd
If you want a live, animated number up-counter you can drop into any site in Carrd, we have the code for you, which gives a clean counter that animates up to a target number as soon as the page loads.
You can use it for stats, milestones, goals, tallies, anywhere a growing number adds meaning.

What It Does

This counter:
  • Starts from 0 and counts up to a defined value
  • Smoothly animates using requestAnimationFrame
  • Formats the number with thousands separators
  • Runs automatically on page load
notion image

Why it’s useful

Animated counters grab attention and show progress visually. They’re great for:
  • Landing pages (users love dynamic stats)
  • Portfolio numbers (projects completed, clients served)
  • Product pages (units sold, users onboarded)
  • Donations / goals (fundraising counters)
Because this implementation uses vanilla JavaScript with minimal markup and no dependencies, it’s lightweight and easy to adapt.

How it works

  1. The number to count up to is stored in a data-target attribute.
  1. JavaScript reads that target number.
  1. requestAnimationFrame animates the count over a defined duration.
  1. Each frame updates the text content with a formatted number.
 
Find more code snippets for Carrd here: codefor.carrd.co.

Subscribe for more carrd news & tips

Subscribe

Written by