finds.dev

PanJiaChen/vue-countTo

It's a vue component that will count to a target number at a specified duration https://panjiachen.github.io/countTo/demo/

View on GitHub

★ 1,505JavaScriptupdated Feb 2023

// the take

A Vue 2 component that animates a number from a start value to an end value over a set duration. Zero dependencies, supports easing functions, SSR, and basic formatting (separators, decimals, prefix/suffix). Exactly what it says on the tin.

No dependencies and the minified bundle is tiny — under 2KB gzipped. The easing function is replaceable, so you can swap in your own curve without forking. Count-up and count-down are automatic based on start/end values, no extra config needed. SSR support is real and handled via a polyfilled requestAnimationFrame shim.

Vue 2 only — last commit was 2023 and there's no Vue 3 support, so this is a dead end for any modern project. The dist folder ships pre-built JS committed to git, which is a code smell and means you can't verify what you're getting matches the source. No TypeScript types. Locale-aware number formatting isn't supported, so if your app targets non-English locales you'll be hacking around the separator/decimal fields manually.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,505
Forks
313
Language
JavaScript
Last commit
22 Feb 2023

// nearby

If vue-countTo isn't quite it.

All repos →