You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
@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:
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?
<aclass="wp-block-group"
data-wp-linkdata-wp-view-transition-name="featured-image"
><h3class="wp-block-header">Some Post Title</h3><imgclass="wp-block-image" src=".../featured-image.jpg" /></a>
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
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?
The text was updated successfully, but these errors were encountered: