Complete the code to import the fade transition from Svelte.
import { [1] } from 'svelte/transition';
The fade transition is imported from svelte/transition to use fade effects.
Complete the code to apply the fade transition when the paragraph appears.
<p [1]:fade>Hello, Svelte!</p>The transition directive applies the fade effect both when the element enters and leaves.
Fix the error in the code to correctly apply an out transition with fade.
{#if visible}
<div out:[1]>{{message}}</div>
{/if}The fade transition is used with the out: directive to animate the element leaving.
Fill both blanks to apply an in transition with fly and an out transition with fade.
{#if show}
<div in:[1] out:[2]>Welcome!</div>
{/if}The fly transition is used for the element entering, and fade for leaving.
Fill all three blanks to import fade and fly, then apply fly in and fade out transitions.
import { [1], [2] } from 'svelte/transition'; {#if active} <section in:[3] out:fade>Content here</section> {/if}
Import fade and fly transitions, then use fly for the in transition and fade for out.