Skip to content

Commit

Permalink
docs: matches hint with existing structure and solution (#8915)
Browse files Browse the repository at this point in the history
  • Loading branch information
chhotii-alex authored Jul 5, 2023
1 parent d516bb0 commit bb5d394
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions documentation/tutorial/10-transitions/09-key-blocks/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ title: Key blocks
Key blocks destroy and recreate their contents when the value of an expression changes.

```svelte
{#key value}
<div transition:fade>{value}</div>
{#key number}
<span style="display: inline-block" in:fade>
{number}
</span>
{/key}
```

Expand Down

0 comments on commit bb5d394

Please sign in to comment.