Skip to main content

Transition properties

Select which resolved target values animate.

Quick reference​

SyntaxBehavior
transitionColors, opacity, transforms, radius, and drawn border width.
transition-colorsForeground, background, border colors.
transition-opacityOpacity.
transition-transformTranslation, scale, and rotation.
transition-radiusResolved corner radius.
transition-borderBorder color and drawn width.
transition-shadowPortable shadow strength.
transition-sizeMeasured dimensions; real layout, explicit opt-in.
transition-spacingResolved padding and X/Y gaps; real layout.
transition-valueMeter, Range, and Scrollbar visual values.
transition-noneDisable 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.

Your first transition · All reference