Time for transitions

I am simultaneously very excited and very nervous about the View Transitions API.

You may know it by its former name—Shared Element Transitions. The name change is very recent.

I’ve been saying for years that some kind of API like this would be bri…


This content originally appeared on Adactio: Journal and was authored by Adactio: Journal

I am simultaneously very excited and very nervous about the View Transitions API.

You may know it by its former name—Shared Element Transitions. The name change is very recent.

I’ve been saying for years that some kind of API like this would be brilliant:

I honestly think if browsers implemented this, 80% of client-rendered Single Page Apps could be done as regular good ol’-fashioned websites.

Miriam Suzanne describes the theory of View Transitions succinctly:

Shared-element transitions are designed to work with standard web navigation across multiple page loads, as well as page transitions in ‘single-page’ apps (often called SPAs).

This all sounds brilliant. But the devil is in the implementation details. Right now, the API only works for single page apps. This is totally understandable. For purely pragmatic reasons, single page apps are a simple use case to solve for. It’s going to take a lot more work to get this API to work for multi-page apps (or as we used to call them, websites).

If we get a View Transitions API that works across page navigations, it could potentially turbo-charge the web. It will act as a disencentive to building single page apps—you’d be able to provide swish transitions without sacrificing performance or resilience at the alter of a heavy-handed JavaScript-only architecture.

But if the API only ever works for single page apps (which is the current situation), then it will act as an incentive to make any kind of website into a single page app, regardless of whether it’s actually the appropriate architecture.

That prospect has me very worried indeed.

I’m making my feelings on this known just in case any of the implementators out there are thinking, “Hey, maybe it’s fine that this API only works for single page apps—I’m sure most people would be happy with that.”

If the View Transitions API works across page navigations, it could be the single best thing to happen to the web in years.

If the View Transitions API only works for single page apps, it could be the single worst thing to happen to the web in years.

Update: Jake says:

We’re currently landing code in Chrome for the MPA version.

Very happy to hear that! It’s already in the spec, but it’s good to hear that the implementation isn’t going to lag too much.

Also, read this follow-up.


This content originally appeared on Adactio: Journal and was authored by Adactio: Journal


Print Share Comment Cite Upload Translate Updates
APA

Adactio: Journal | Sciencx (2022-11-05T09:01:19+00:00) Time for transitions. Retrieved from https://www.scien.cx/2022/11/05/time-for-transitions/

MLA
" » Time for transitions." Adactio: Journal | Sciencx - Saturday November 5, 2022, https://www.scien.cx/2022/11/05/time-for-transitions/
HARVARD
Adactio: Journal | Sciencx Saturday November 5, 2022 » Time for transitions., viewed ,<https://www.scien.cx/2022/11/05/time-for-transitions/>
VANCOUVER
Adactio: Journal | Sciencx - » Time for transitions. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/11/05/time-for-transitions/
CHICAGO
" » Time for transitions." Adactio: Journal | Sciencx - Accessed . https://www.scien.cx/2022/11/05/time-for-transitions/
IEEE
" » Time for transitions." Adactio: Journal | Sciencx [Online]. Available: https://www.scien.cx/2022/11/05/time-for-transitions/. [Accessed: ]
rf:citation
» Time for transitions | Adactio: Journal | Sciencx | https://www.scien.cx/2022/11/05/time-for-transitions/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.