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
I've tried to do some experiments around the View Transition API for cross-document transition to perform a fade-out/fade-in. The issue is that the whole transition starts when the new document is entirely loaded, given a few hundred of milliseconds of delay before performing the fade-out transition on the old document.
I could not find any way to start the transition of the old document sooner. The only way I've found is to mix the SPA method (using startViewTransition with the CSS based (using the @view-navigation) for the fade-in. But it seems a bit counter-unintuitive. Is there a better way to do that?
Handling of the fade-out to have the effect right away:
(delegateDocument).on('click','a:not([target="_blank"])',async(event,target)=>{// Link to other websites and anchors are discardedif(target.hostname!==window.location.hostname||target.pathname===window.location.pathname){return;}document.startViewTransition(()=>{document.body.animate([{opacity: 0}],{duration: 150,fill: 'forwards'});});
What is the issue with the HTML Standard?
Hello,
I've tried to do some experiments around the View Transition API for cross-document transition to perform a fade-out/fade-in. The issue is that the whole transition starts when the new document is entirely loaded, given a few hundred of milliseconds of delay before performing the fade-out transition on the old document.
I could not find any way to start the transition of the old document sooner. The only way I've found is to mix the SPA method (using
startViewTransition
with the CSS based (using the @view-navigation) for the fade-in. But it seems a bit counter-unintuitive. Is there a better way to do that?Handling of the fade-out to have the effect right away:
While the fade-in is handled in CSS:
The text was updated successfully, but these errors were encountered: