Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions documentation/docs/03-template-syntax/14-in-and-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ title: in: and out:
The `in:` and `out:` directives are identical to [`transition:`](transition), except that the resulting transitions are not bidirectional — an `in` transition will continue to 'play' alongside the `out` transition, rather than reversing, if the block is outroed while the transition is in progress. If an out transition is aborted, transitions will restart from scratch.

```svelte
<script>
import { fade, fly } from 'svelte/transition';
</script>

{#if visible}
<div in:fly out:fade>flies in, fades out</div>
{/if}
Expand Down