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
document.querySelectorAll(".example-1").forEach((element) => {
new CounterAnimation({
element: element,
regionFormat: "es-ES",
separator: ".",
});
});
20.000$
20.000.000$ inverted