Complete the code to import the built-in fade transition in Svelte.
import { [1] } from 'svelte/transition';
The fade transition is a simple built-in effect in Svelte used to smoothly show or hide elements.
Complete the code to apply a fade transition when the paragraph appears.
<p transition:[1]>{{message}}</p>Using transition:fade applies the fade effect to the paragraph when it enters or leaves the DOM.
Fix the error in the code to correctly use the fade transition with a duration of 500ms.
<div transition:fade=[1]>{{content}}</div>The transition parameters must be passed as an object inside curly braces, like {duration: 500}.
Fill both blanks to create a fade transition that lasts 300ms and delays start by 100ms.
<section transition:fade=[1]>{{text}}</section>The object must specify duration first with 300ms and delay second with 100ms to match the requirement.
Fill all three blanks to create a fade transition with duration 400ms, easing 'cubicInOut', and delay 50ms.
<div transition:fade=[1]>{{content}}</div>The transition parameters are passed as an object with duration, easing, and delay. The order does not affect the effect, but the correct syntax uses curly braces and commas.