Skip to content

Commit 4d2f1fb

Browse files
authored
Apply suggestions from code review
1 parent 5b45fda commit 4d2f1fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

documentation/docs/03-template-syntax/14-in-and-out.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ The `in:` and `out:` directives are identical to [`transition:`](transition), ex
77
```svelte
88
<script>
99
import { fade, fly } from 'svelte/transition';
10+
11+
let visible = $state(false);
1012
</script>
1113
14+
<label>
15+
<input type="checkbox" bind:checked={visible}>
16+
visible
17+
</label>
18+
1219
{#if visible}
1320
<div in:fly out:fade>flies in, fades out</div>
1421
{/if}

0 commit comments

Comments
 (0)