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({
1313 ) ;
1414
1515 flushSync ( ) ;
16- raf . tick ( 50 ) ;
16+ raf . tick ( 250 ) ;
1717
1818 assert . htmlEqual (
1919 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>'
2121 ) ;
2222
2323 await Promise . resolve ( ) ;
Original file line number Diff line number Diff line change 11<script >
2- import { slide } from ' svelte/transition' ;
2+ import { fade } from ' svelte/transition' ;
33
44 let toggle = $state (true );
55 let items = $state ([ 1 , 2 , 3 ]);
1515<button onclick ={handle_toggle }>Toggle</button >
1616
1717{#if toggle }
18- <div transition:slide ={{ duration : 500 }}>
18+ <div transition:fade ={{ duration : 500 }}>
1919 {#each items as item (item )}
2020 <div >{item }</div >
2121 {/each }
You can’t perform that action at this time.
0 commit comments