div
createEffect
// ...const [signal, setSignal] = createSignal(false);let refDiv1, refDiv2;createEffect(async ()=> { if(signal()) { refDiv1.style.display='block'; await new Promise(resolve => setTimeout(resolve, 1000)); refDiv2.style.display='block'; await new Promise(resolve => setTimeout(resolve, 1000)); // ... }})