docs: Reduce load flicker (#43762)

Follow up to https://github.com/zed-industries/zed/pull/43758.

This PR uses view transition animations to reduce the page flickering
when navigating between one and the other. Pretty cool CSS-only
solution.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-11-28 22:41:33 +00:00
committed by GitHub
parent b11f22bb9a
commit 34b453cee6
+7
View File
@@ -3,6 +3,13 @@
<head>
<!-- Book generated using mdBook -->
<meta charset="UTF-8">
<meta name="view-transition" content="same-origin">
<style>
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 0.15s;
}
</style>
<!-- Theme initialization - must run before any CSS loads to prevent flicker -->
<script>
(function() {