Odometer Counter

Norio uses the Odometer library only as a classic vendor for number ticks. The rest of the app is ES modules — there is no jQuery application code. Library site: Odometer


How it is wired
  1. public/assets/js/vendors/jquery.odometer.min.js exposes window.Odometer.
  2. src/partials/scripts.njk loads that file before the Vite entry.
  3. src/assets/js/odometer-counter.js finds .has-odometer, reads data-count (or the current text), and counts up when the element enters the viewport via ScrollTrigger.
Markup
    
<span class="has-odometer" data-count="124">0</span>
    

The initializer adds the odometer class and starts from 0. If prefers-reduced-motion: reduce is on, the final number is written immediately with no animation.

Do not
  • Do not add jQuery just to drive counters.
  • Do not style counters with leftover utility classes such as .h1.count.fw-black — use the section’s BEM class and tokens.