Skip to content

Commit bb5d394

Browse files
authored
docs: matches hint with existing structure and solution (#8915)
1 parent d516bb0 commit bb5d394

File tree

1 file changed

+4
-2
lines changed
  • documentation/tutorial/10-transitions/09-key-blocks

1 file changed

+4
-2
lines changed

documentation/tutorial/10-transitions/09-key-blocks/text.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ title: Key blocks
55
Key blocks destroy and recreate their contents when the value of an expression changes.
66

77
```svelte
8-
{#key value}
9-
<div transition:fade>{value}</div>
8+
{#key number}
9+
<span style="display: inline-block" in:fade>
10+
{number}
11+
</span>
1012
{/key}
1113
```
1214

0 commit comments

Comments
 (0)