Skip to main content

enter: and exit:

Define lifecycle endpoints and phase-specific response settings.

Quick reference​

SyntaxBehavior
enter:opacity-0Entering opacity endpoint.
exit:translate-y-fullExiting measured translation endpoint.
enter:tween enter:duration-200Phase-specific timing engine and setting.

Example​

<Column state="{open:true}">
<Button title="Toggle panel" on-press="toggle open" />
<Column show="open" class="enter:opacity-0 exit:opacity-0 spring-soft">
<Text text="Retained content" />
</Column>
</Column>

Rules and validation​

Base classes describe the visible target. Supported phase endpoints include opacity, transforms, appearance, and fixed dimensions. Phase-specific duration/easing requires effective tween. show retains state and can reverse; if removes logical state and uses inert outgoing presentation where supported. Outgoing controls do not remain interactive while animation completes.

Entering and leaving · All reference