Number Ticker

Mood track «Tech Live» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style Number Ticker
Preview built in HTML and CSS in this style

Contatore animato · Contador animado · Animated counter · Rolling digits · Cifre a rullo · Odometer

Numbers don't just appear; they count up from zero or roll digit by digit like an odometer. They give weight and rhythm to stats, prices and dashboards.

Era
2012 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
rationalenergeticclean
Explore

Live demo

View code
<main>
  <section class="k"><small>Utenti attivi</small><b class="num" data-v="48.271"></b><em>+12% questo mese</em><div class="bar"><i></i></div></section>
  <section class="k b"><small>Fatturato</small><b class="num" data-v="€930K"></b><em>+4,8% rispetto a ieri</em><div class="bar"><i></i></div></section>
</main>
<script>
document.querySelectorAll('.num').forEach(el=>{let k=0;
  [...el.dataset.v].forEach(ch=>{
    if(/\d/.test(ch)){const c=document.createElement('span');c.className='col';c.style.cssText=`--d:${ch};--k:${k++}`;
      c.innerHTML='<i>'+[...'01234567890123456789'].map(n=>'<u>'+n+'</u>').join('')+'</i>';el.append(c)}
    else{const s=document.createElement('span');s.className='sep';s.textContent=ch;el.append(s)}})});
</script>
body{margin:0;height:100vh;display:grid;place-items:center;background:#0F1222;font-family:Inter,sans-serif;color:#F5F3EE;overflow:hidden}
main{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;padding:0 12px}
.k{background:#181C33;border:1px solid #2A3058;border-radius:18px;padding:18px 22px 16px;width:min(230px,80vw);box-sizing:border-box}
small{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#8A90B8}
.num{display:flex;font:700 46px/1 'Space Grotesk',sans-serif;margin:10px 0 8px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.col{display:inline-block;height:1em;overflow:hidden}
.col i{display:block;font-style:normal;transform:translateY(calc(var(--d)*-1em))}
.col u{display:block;height:1em;text-decoration:none}
.sep{color:#3B5BFF}
.b .sep{color:#FFB020}
em{font-style:normal;font-size:13px;font-weight:600;color:#21D19F}
.bar{height:6px;border-radius:6px;background:#2A3058;margin-top:14px;overflow:hidden}
.bar i{display:block;height:100%;width:72%;border-radius:6px;background:linear-gradient(90deg,#3B5BFF,#21D19F)}
.b .bar i{width:58%;background:linear-gradient(90deg,#FFB020,#21D19F)}
@media (prefers-reduced-motion:no-preference){
  .col i{animation:roll 4.5s cubic-bezier(.16,1,.3,1) infinite;animation-delay:calc(var(--k)*90ms)}
  .bar i{transform-origin:left;animation:fill 4.5s cubic-bezier(.16,1,.3,1) infinite}
  .num,.k em{animation:blink 4.5s ease infinite}
  @keyframes roll{0%{transform:translateY(0)}45%,100%{transform:translateY(calc((var(--d) + 10)*-1em))}}
  @keyframes fill{0%{transform:scaleX(0)}45%,100%{transform:scaleX(1)}}
  @keyframes blink{0%,90%{opacity:1}97%{opacity:0}100%{opacity:1}}
}

Characteristics

  • Digit columns rolling vertically
  • Count from zero to value with an ease-out finish
  • Tabular figures so nothing jitters
  • Starts when the number scrolls into view
  • Separators and units stay still

Palette

Click a swatch to copy it

Typography

Headings · Space Grotesk Number Ticker

Body · Inter Numbers don't just appear; they count up from zero or roll digit by digit like an odometer. They give weight and rhythm to stats, prices and dashboards.

Motion

Easing
cubic-bezier(0.16, 1, 0.3, 1) (ease-out-expo)
Typical duration
0.8–2 s per numero, colonne sfalsate di 50–100 ms
Techniques
colonne 0–9 con transform translateY, font-variant-numeric tabular-nums, requestAnimationFrame con interpolazione, IntersectionObserver per l'avvio, @property per animare interi in CSS, Intl.NumberFormat

Accessibility (reduced motion)

Show the final value straight away, at most with a short fade, with no counting or rolling digits.

Prompt for your agent

Copy and paste into your prompt to have an agent or image generator reproduce this style.

For web pages and UI

Design the web page or interface in this style: Number Ticker (Contatore animato, Contador animado).
Numbers don't just appear; they count up from zero or roll digit by digit like an odometer. They give weight and rhythm to stats, prices and dashboards.
Characteristics: Digit columns rolling vertically, Count from zero to value with an ease-out finish, Tabular figures so nothing jitters, Starts when the number scrolls into view, Separators and units stay still.
Palette: #0F1222, #F5F3EE, #3B5BFF, #21D19F, #FFB020.
Typography: headings in Space Grotesk, body text in Inter (Google Fonts or equivalents).
Mood: rational, energetic, clean.
Motion: easing cubic-bezier(0.16, 1, 0.3, 1) (ease-out-expo), typical duration 0.8–2 s per numero, colonne sfalsate di 50–100 ms; techniques: colonne 0–9 con transform translateY, font-variant-numeric tabular-nums, requestAnimationFrame con interpolazione, IntersectionObserver per l'avvio, @property per animare interi in CSS, Intl.NumberFormat.
With prefers-reduced-motion: Show the final value straight away, at most with a short fade, with no counting or rolling digits.
References: Odometer di HubSpot, NumberFlow, contatori nelle landing di Stripe e Linear, MDN «font-variant-numeric».

Relations

Similar to: Text ScrambleText ScrambleSimilar to: Data-Dense DashboardData-Dense DashboardSimilar to: Split-flapSplit-flapNumber Ticker
Similar toSee in the graph →

References

  • Odometer di HubSpot
  • NumberFlow
  • contatori nelle landing di Stripe e Linear
  • MDN «font-variant-numeric»