Transition properties
Select which resolved target values animate.
Quick reference
| Syntax | Behavior |
|---|---|
transition | Colors, opacity, transforms, radius, and drawn border width. |
transition-colors | Foreground, background, border colors. |
transition-opacity | Opacity. |
transition-transform | Translation, scale, and rotation. |
transition-radius | Resolved corner radius. |
transition-border | Border color and drawn width. |
transition-shadow | Portable shadow strength. |
transition-size | Measured dimensions; real layout, explicit opt-in. |
transition-spacing | Resolved padding and X/Y gaps; real layout. |
transition-value | Meter, Range, and Scrollbar visual values. |
transition-none | Disable ordinary target transitions on this node. |
Example
<Column state="{dim:false}">
<View bind-class="'w-16 h-16 bg-accent transition-opacity ' + (dim ? 'opacity-25' : 'opacity-100')" />
<Button title="Fade" on-press="toggle dim" />
</Column>
Rules and validation
One selector wins by source order: transition-colors transition-transform selects transforms. Use transition for the supported combined channels. There is no transition-all. Default response is spring, including colors/opacity. Targets and logical state update immediately; motion follows. Text, fonts, image sources, scroll positions, and discrete semantics are not interpolated.