Skip to content

Commit 0ca1f4a

Browse files
docs: raise importance of global vs local transitions (#15479)
* Doc: Raise importance of global vs local transitions * switch order --------- Co-authored-by: Rich Harris <[email protected]>
1 parent e9a16c4 commit 0ca1f4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

documentation/docs/03-template-syntax/13-transition.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ The `transition:` directive indicates a _bidirectional_ transition, which means
2222
{/if}
2323
```
2424

25-
## Built-in transitions
26-
27-
A selection of built-in transitions can be imported from the [`svelte/transition`](svelte-transition) module.
28-
2925
## Local vs global
3026

3127
Transitions are local by default. Local transitions only play when the block they belong to is created or destroyed, _not_ when parent blocks are created or destroyed.
@@ -40,6 +36,10 @@ Transitions are local by default. Local transitions only play when the block the
4036
{/if}
4137
```
4238

39+
## Built-in transitions
40+
41+
A selection of built-in transitions can be imported from the [`svelte/transition`](svelte-transition) module.
42+
4343
## Transition parameters
4444

4545
Transitions can have parameters.

0 commit comments

Comments
 (0)