svelte-transitions icon indicating copy to clipboard operation
svelte-transitions copied to clipboard

transitions not working when on else block only

Open dschulten opened this issue 8 years ago • 0 comments

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.

dschulten avatar Jun 20 '17 23:06 dschulten