View transitions let you animate between two DOM states with one function call. Here is how I use them for page navigations and UI changes.