SPA view transitions land in Chrome 111 - Chrome for Developers

The View Transition API allows page transitions within single-page apps, and will later include multi-page apps.

Chrome for Developers

@developers @jaffathecake is there an issue describing how y'all are thinking about doing this? Super excited about the improvements y'all are talking about, they'll all be so helpful in making the API really robust.

> We plan to detect the default animations and common customizations, then reinterpret them as compositor-driven animations for a nice performance boost.

@callie I don't think we have any documentation, but the plan is to reinterpret the animations as transforms, which work well on the compositor.

But, if you like, give one of the pseudos a border, and animate the border width, I don't think we can optimise stuff like that.

@jaffathecake Yeah that makes total sense! We're working on a mostly-fill and I was following y'alls lead on the width/height animation for the group but would love to be on the compositor side as much as possible, so maybe will do an opt-in via a custom property on our side to signal for that when the official API isn't available.
@callie being on the compositor will matter a ton for MPA, because the main thread is a shitshow on page load
@jaffathecake Has the spec reached maturity?!! Or is it going to be experimental for now?
@nmn what does spec maturity mean?
@jaffathecake stable, in terms of the api so far?
@nmn yep! We don't forsee any breaking changes.