Counter Animation - By Thunderfoot

Example 1:

No HTML attributes

JS Class Configuration options:

document.querySelectorAll(".example-1").forEach((element) => {
  new CounterAnimation({
    element: element,
    regionFormat: "en-US",
    separator: ",",
    duration: 1.5,
    scrollStart: "center",
  });
});

20,000M invested

20,000,000 houses protected

Example 2:

HTML attributes

JS Class Configuration options:

document.querySelectorAll(".example-1").forEach((element) => {
  new CounterAnimation({
    element: element,
    regionFormat: "es-ES",
    separator: ".",
  });
});

20.000$

20.000.000$ inverted