File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/svelte/tests/runtime-runes/samples/transition-each-3 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ export default test({
13
13
) ;
14
14
15
15
flushSync ( ) ;
16
- raf . tick ( 50 ) ;
16
+ raf . tick ( 250 ) ;
17
17
18
18
assert . htmlEqual (
19
19
target . innerHTML ,
20
- '<button>Toggle</button><div style="overflow: hidden; opacity: 0;"><div>1</div><div>2</div><div>3</div></div>'
20
+ '<button>Toggle</button><div style="opacity: 0;"><div>1</div><div>2</div><div>3</div></div>'
21
21
) ;
22
22
23
23
await Promise . resolve ( ) ;
Original file line number Diff line number Diff line change 1
1
<script >
2
- import { slide } from ' svelte/transition' ;
2
+ import { fade } from ' svelte/transition' ;
3
3
4
4
let toggle = $state (true );
5
5
let items = $state ([ 1 , 2 , 3 ]);
15
15
<button onclick ={handle_toggle }>Toggle</button >
16
16
17
17
{#if toggle }
18
- <div transition:slide ={{ duration : 500 }}>
18
+ <div transition:fade ={{ duration : 500 }}>
19
19
{#each items as item (item )}
20
20
<div >{item }</div >
21
21
{/each }
You can’t perform that action at this time.
0 commit comments