Question · Svelte and SvelteKit course · Module 9: Transitions and Animations

Separate Enter and Leave Animations

How do you set different animations for entering and leaving?

Answer options

  • transition:fly|fade
  • in:fly out:fade
  • enter:fly leave:fade
  • animation-in:fly animation-out:fade

You can check the correct answer by solving this task in the CodeWorlds game.