Svelte · Middle · Question 62 of 75

How do you pass parameters to a transition?

<div in:fly={{ y: 20, duration: 300 }} out:fade>...</div>

Explanation

Common parameters are delay, duration and easing (functions from svelte/easing).

Further reading

Problem with a question

Svelte · Middle · question 62

Test yourself

Take the Svelte · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz