Skip to content

Commit 16bc2e9

Browse files
committed
Reverted first part of [... / Key blocks] change
1 parent ccdd051 commit 16bc2e9

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/02-advanced-svelte/02-transitions/08-key-blocks

1 file changed

+1
-1
lines changed

content/tutorial/02-advanced-svelte/02-transitions/08-key-blocks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Key blocks
33
---
44

5-
Key blocks destroy and recreate their contents when the value of the following expression (in the example: `i`) changes. This is useful if you want an element to play its transition whenever a value changes instead of only when the element enters or leaves the DOM.
5+
Key blocks destroy and recreate their contents when the value of an expression changes. This is useful if you want an element to play its transition whenever a value changes instead of only when the element enters or leaves the DOM.
66

77
Here, for example, we'd like to play the `typewriter` transition from `transition.js` whenever the loading message, i.e. `i` changes. Wrap the `<p>` element in a key block:
88

0 commit comments

Comments
 (0)