Svelte · Middle · Question 63 of 75
How does in:/out: differ from transition:?
- ✓Correct answer:
transition:is bidirectional and can reverse mid-way; separatein:andout:are independent and don't reverse - 2
in:andout:work only on components - 3There is no difference
Explanation
If an element is toggled while its outro is playing, transition: reverses smoothly, whereas in: starts its own animation alongside.