Consider this svelte code
{#await}
<div class='loading'>
<p>LOADING LOGO ANIMATION</p>
</div>
{:then value}
<div class='loaded'>
<p>Main site content</p>
</div>
I'd like to add a transition or animation from the loading 'await' part to when everything is loaded. I'd like the loading part to fade out, and only when its fully faded out for the loaded content to then fade in. Any ideas ? Can this be done this way ?