Svelte · Middle · Question 63 of 75

How does in:/out: differ from transition:?

Explanation

If an element is toggled while its outro is playing, transition: reverses smoothly, whereas in: starts its own animation alongside.

Further reading

Problem with a question

Svelte · Middle · question 63

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