Skip to main content

Choose what transitions

Choose which changed properties animate.

Before you start: Your first transition.

This example changes color and opacity together but selects only opacity. The color changes immediately. The engine animates resolved values, not the text of the class string.

Select transition properties​

One transition selector wins. Listing transition-colors transition-transform selects transforms; it does not combine them.

<Column state="{changed:false}" class="p-4 gap-3">
<View bind-class="'w-16 h-16 transition-opacity ' + (changed ? 'bg-danger opacity-25' : 'bg-accent opacity-100')" />
<Button title="Change target" on-press="toggle changed" />
</Column>
Select transition properties
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: Replace transition-opacity with transition-colors, then with transition. Observe which values animate.

transition combines supported appearance/transform channels. Size, spacing, shadow, control values, and keyed layout movement require explicit opt-in. Relo does not provide transition-all. Next: fixed timing.