In Svelte we can add transitions with:
<div in:fade={{duration: 150}}>...</div>
It's also possible to have conditional HTML attributes with:
<input disabled={null}>
This doesn't work with transitions:
<div in:fade={null}>...</div>
Which throws this error as it expects a config object:
Cannot read property 'delay' of null
So what would would be the appropriate way of adding a conditional transition in Svelte?
Other than:
{#if animate}
<div in:fade></div>
{:else}
<div></div>
{/if}