enter: and exit:
Define lifecycle endpoints and phase-specific response settings.
Quick reference
| Syntax | Behavior |
|---|---|
enter:opacity-0 | Entering opacity endpoint. |
exit:translate-y-full | Exiting measured translation endpoint. |
enter:tween enter:duration-200 | Phase-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.