The View Transition API is much more ambitious than CSS transitions in that it is attempting to provide a simple, intuitive API for transitioning an entire DOM from one state to another in a way that mere mortals can take advantage of.

Source: </> htmx ~ Examples ~ View Transitions