The script uses a high-resolution timer to calculate the current value based on the elapsed time.
Math: It applies an easeOutExpo formula to the progress ratio, ensuring the animation feels professional and "premium."
easeOutExpo
Rendering: Updates the innerText of the placeholder, ensuring it’s lightweight and SEO-friendly.
innerText
TargetNumber: The number you want to reach (e.g., 1250.50).
TargetNumber
1250.50
Duration: How long the "journey" takes. For landing pages, 2000ms (2 seconds) is the sweet spot.
Duration
2000ms
Decimals: Set to 2 for financial values, or 0 for simple counts.
Decimals
2
0
Viewport Triggering: For the best effect, ensure the animation starts when the user scrolls to the element (you can combine this with OutSystems' "On Visible" events if needed).
Typography: Works best with clean, modern Sans-Serif fonts where numeric widths are consistent.