Explore how to integrate the new View Transitions API #53063
Replies: 6 comments
-
@SantosGuillamot started this exploration: |
Beta Was this translation helpful? Give feedback.
-
The Astro team is working on an API to do client-side navigation. It has directives for the transitions, so we should take a look and check if some of their ideas are good and could be applied here as well: withastro/roadmap#607 |
Beta Was this translation helpful? Give feedback.
-
SvelteKit is also working on it, so it'd be interesting to explore: https://svelte.dev/blog/view-transitions |
Beta Was this translation helpful? Give feedback.
-
More people join the party. Now Remix and React Router: https://twitter.com/remix_run/status/1713967836798886360 |
Beta Was this translation helpful? Give feedback.
-
Hi, there's some news about this one, seems very interesting! |
Beta Was this translation helpful? Give feedback.
-
Hello. Please, you should return to this topic, it is a shame that something native to browsers cannot be implemented in WP. The issue of view transitions will open many doors when it comes to improving WordPress themes and it is something that from what I see is not being taken with the consideration it deserves. Greetings |
Beta Was this translation helpful? Give feedback.
-
Let's explore how to integrate the new View Transitions API!
@DAreRodz played with it in this branch, but everything was hardcoded. Let's see what tools we can build to make using this API a breeze for theme creators.
About running
document.startViewTransition
with client-side navigation:Should the router support it?
Should it be configured using the router's state? Like:
Should it be a
<meta>
tag like the client-side navigation?Should it be the same
<meta>
tag as the client-side navigation?Should the client-side navigation be a state configuration instead of a
<meta>
tag?Can we make it so
document.startViewTransition
is not hardcoded into the router, and instead is injected as external functionality? (make the router "extensible")About setting
view-transition-name
dynamically:Can we create a directive to set it dynamically right before the user navigates?
Should it be part of `wp-link'?
If this needs to match the CSS of the theme, how can a theme "inject" this directive in the correct place of the HTML?
Should blocks support it by default? (configurable in the Editor)
Other questions?
Beta Was this translation helpful? Give feedback.
All reactions