Archived docs Get your API Key
Get started
Tutorials
Guides
Reference
Help for AI agents
🤖 AI Assistant

Component advanced/060

Component ID: advanced/060

An animated number counter that counts up or down between two values. The text template uses '__num__' as a placeholder that gets replaced by the current value during animation. Supports decimal places and custom easing. Great for statistics, metrics, countdowns, price reveals, or any numeric animation.

SectionInteractive or data-driven elements: buttons, counters, ratings, images, tables
AnimationNumber interpolates from 'from' to 'to' value with configurable duration and easing. The __num__ placeholder in the text template updates in real-time.
Intro duration10 s

Preview

Element schema

Minimal shape of a advanced/060 component element:

{
    "type": "component",
    "component": "advanced/060",
    "settings": {}
}

See the full component element reference for shared properties like duration, start, x, y, etc.

Settings

The settings property accepts the following groups. Each group contains CSS-like properties; see component CSS properties for the full list of supported keys.

counter

Counter configuration and styling.

PropertyTypeDefaultDescription
textstring__num__Text template. Use '__num__' as placeholder (e.g. '$__num__ USD', '__num__%').
fromnumber0Starting value.
tonumber1000Ending value.
durationnumber5000Animation duration in ms (0-10000).
decimalsinteger0Decimal places (0-3).
easingstringeaseInOutExpoAnime.js easing function.
colorstringwhiteText color.
font-sizestringFont size.
font-familystringRobotoGoogle Font name.
text-strokestringText outline.
vertical-alignstring (enum)centerVertical position. Values: top, center, bottom
horizontal-alignstring (enum)centerHorizontal position. Values: left, center, right
text-alignstringcenterText alignment.