wyos
June 22, 2024, 5:02pm
1
I love how fast Divhunt is. And i just learned that cross documents transitions are available in chrome. This seems to be incredible. It’s so smooth and it seems like it’d be perfect in Divhunt.
I was wondering if there’s a way to set this up?
Thanks
1 Like
Pakic
June 23, 2024, 11:38am
2
Could be possible, never tried that one. Do you have some documentation that I can read?
# Cross Document View Transitions
# Introduction
Cross-document View Transitions are an extension to
[same-document transitions](https://drafts.csswg.org/css-view-transitions-1/), adding the semantics
necessary to display transitions when navigating across documents.
## Scope
[The main explainer](explainer.md) and the [`css-view-transitions-1` spec](https://drafts.csswg.org/css-view-transitions-1/)
provide a detailed explanation about same-document view transitions. Most of that is applicable to
cross-document transitions as well. This document provides explanations about the additional
semantics, and how cross-document transitions work.
# Design Principles
## Compatible with same-document transitions
Developers shouldn't have to jump through hoops or rethink their transition design when switching
between an MPA architecture and an SPA architecture. The main building blocks of the transition,
This file has been truncated. show original
is this one?
Yes, this would be awesome now that the view transition api is pretty well supported .
@Pakic Is there any documentation or do you have any tips about catching the divhunt page unload event? (+ other relevant events)