Skip to main content

Animate control values

Animate the presentation of a numeric control without delaying its logical value.

Before you start: Springs.

transition-value supports Meter, Range, and Scrollbar. Committed values and accessibility update immediately. Direct dragging remains responsive rather than acquiring spring lag.

Animate a numeric value​

A single meter changes from 20 to 100.

<Column state="{done:false}" class="p-4 gap-3">
<Meter bind-value="done ? 100 : 20" label="Upload" class="transition-value spring-soft" />
<Button title="Change progress" on-press="toggle done" />
</Column>
Animate a numeric value
editable
Browser preview
rReady to explore
Environment & events

Browser rendering of the shared document. Host services are bundled demo mocks. XML edits reset local state; data edits preserve compatible state.

Interact with the preview to inspect emitted events and mocked service calls.

Try it: Change the upper target to 60, then reverse before it settles.

Next: loading effects. Reference: transition-value.