svelte-transitions
svelte-transitions copied to clipboard
transitions not working when on else block only
https://svelte.technology/repl?version=1.22.5&gist=cf3b605f52d9dfdcc49a0e8b6ab905f0 Neither the if nor the else block will transition when they become visible, although the else block has a transition:
{{#if !visible}}
<div>hello!</div>
{{else}}
<div transition:slide>bye!</div>
{{/if}}
If I put the transition on the if block, too, both will slide. Same for fade and fly.