From 665c410125b6f74350a1dd1eb07592a992468530 Mon Sep 17 00:00:00 2001 From: mjvandermeulen Date: Tue, 2 Nov 2021 23:38:20 -0400 Subject: [PATCH] Update text.md I was confused while reading the tutorial about local transitions. The tutorial talks about removing items and words the transition in those terms, which makes the transition block a parent. BUT... then it talks about the local directive, which belongs to the block with the transition itself. To avoid confusion I have pretty much copied the wording from the docs verbatim (https://svelte.dev/docs, search for "Local transitions only play"), since I find the wording in the docs very clear. --- .../tutorial/10-transitions/07-local-transitions/text.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site/content/tutorial/10-transitions/07-local-transitions/text.md b/site/content/tutorial/10-transitions/07-local-transitions/text.md index 400fbcaacb..2b00d2790f 100644 --- a/site/content/tutorial/10-transitions/07-local-transitions/text.md +++ b/site/content/tutorial/10-transitions/07-local-transitions/text.md @@ -6,7 +6,11 @@ Ordinarily, transitions will play on elements when any container block is added Instead, we'd like transitions to play only when individual items are added and removed — in other words, when the user drags the slider. -We can achieve this with a *local* transition, which only plays when the immediate parent block is added or removed: +We can achieve this with a *local* transition. Local transitions only play when the block they belong to is created or removed, not when parent blocks are created or removed. + + + + ```html