--- title: The transition directive --- We can make more appealing user interfaces by gracefully transitioning elements into and out of the DOM. Svelte makes this very easy with the `transition` directive. First, import the `fade` function from `svelte/transition`... ```svelte ``` ...then add it to the `
` element: ```svelte
Fades in and out
```