Complete the code to import the deferred transition function from Svelte.
import { [1] } from 'svelte/transition';
The correct import is deferred from svelte/transition.
Complete the code to apply a deferred transition to a div element.
<div transition:[1]={{ duration: 400 }}>Hello</div>
The deferred transition is applied using transition:deferred.
Fix the error in the deferred transition usage by completing the code.
<div transition:deferred={{ [1] }}>Content</div>The transition parameters must be passed as an object inside curly braces.
Fill both blanks to create a deferred transition with a delay and duration.
<div transition:[1]={{ [2] }}>Deferred Content</div>
The transition name is deferred and the parameters object includes duration and delay.
Fill all three blanks to create a deferred transition with a custom easing function and duration.
<script> import { [1] } from 'svelte/transition'; import { [2] } from 'svelte/easing'; </script> <div transition:[3]={{ duration: 600, easing: cubicInOut }}>Animated Text</div>
Import deferred from svelte/transition and cubicInOut from svelte/easing. Then apply transition:deferred with easing.