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
rReady to explore
Try it: Change the upper target to 60, then reverse before it settles.
Next: loading effects. Reference: transition-value.