š SPA view transitions have landed in stable Chrome!
But, this is just the start! We've got more view transition features planned. Here's what we're looking at next:
https://developer.chrome.com/blog/spa-view-transitions-land/
š SPA view transitions have landed in stable Chrome!
But, this is just the start! We've got more view transition features planned. Here's what we're looking at next:
https://developer.chrome.com/blog/spa-view-transitions-land/
@jaffathecake Sorry, no way. I've skimmed it.
edit: okay, fine.
Sorry, I was out (also sorry for pinging you on a weekend, didn't expect an answer but I appreciate it!), so here's my minimal example: https://codepen.io/chriskirknielsen/pen/rNZJwxx
If you click "Worst" first, then "Best", you should see "Kitt3n" disappear, but layered on top of "2 Cats 2 Curious" (which exists in both filtering states). Admittedly, this "minimal" example feels a little complex already, so it's possible I've taken a wrong turn somewhere.
Thank you again!
The View Transitions API provides a mechanism for easily creating animated transitions between different website views. This includes animating between DOM states in a single-page app (SPA), and animating the navigation between documents in a multi-page app (MPA).
@sil hmm, this would mean we ship MPA transitions, and all of a sudden _all_ same-origin navigations cross-fade (since that's the default).
Worse still, say a site figures out how to animate from their index to article page, but then you navigate from the index page to a profile page⦠and it looks fucked up because they didn't design that transition.
@jaffathecake hang on, all? if you don't do the startViewTransition stuff at all, you still get a view transition? did I misunderstand? Or is the point that if you turn on one single view transition for one single thing, it does it for every same-origin nav away from that page even if you didn't want it?
(I agree on the second point, which I hadn't thought of.)
@sil startViewTransition is the opt-in for SPA transitions. It's how it knows when the change happens. We don't need that for MPA transitions, because we already know when the change happens.
That's how this demo has transitions (in Canary with the flag), even though there's ZERO BYTES of JavaScript involved https://deploy-preview-27--http203-playlist.netlify.app/