---
'astro': minor
---
Persistent DOM and Islands in Experimental View Transitions
With `viewTransitions: true` enabled in your Astro config's experimental section, pages using the `` routing component can now access a new `transition:persist` directive.
With this directive, you can keep the state of DOM elements and islands on the old page when transitioning to the new page.
For example, to keep a video playing across page navigation, add `transition:persist` to the element:
```astro
```
This `