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 was archived by the owner on Jul 28, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
Explore how to integrate the new View Transitions API #178
@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
Activity
luisherranz commentedon Jun 15, 2023
@SantosGuillamot started this exploration:
luisherranz commentedon Jun 30, 2023
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