Summary: View transitions is a new API, along with associated properties and pseudo-elements, which provides authors with an easy and browser native way to animate between two different DOM trees, creating a visual transition, removing the reliance on JavaScript to achieve a similar effect. Here, we cover the L1 spec of this API, which allows animations within the same document (single page applications). This post covers some of the use cases.
Note that the L2 spec allows animating during page navigation, and it is
our future work.
Bug: Bug 1823896 (css-view-transitions-1)
Specification: https://drafts.csswg.org/css-view-transitions-1/
Standards Body: CSSWG
Platform coverage: All
Preference: dom.viewTransitions.enabled
DevTools bug: Bug 1909173 (dt-view-transition)
Link to standards-positions discussion: https://github.com/mozilla/standards-positions/issues/677
Other browsers:
web-platform-tests: https://github.com/web-platform-tests/wpt/tree/master/css/css-view-transitions
Thanks,
Boris Chiou