Skip to content

Commit b47b16c

Browse files
style: add view-transition to animate page transitions
1 parent 761414a commit b47b16c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

static/css/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,3 +502,8 @@ sup[id^="ref-"] {
502502
line-height: 1.25;
503503
}
504504
}
505+
506+
/* Opt in to cross-document view transitions */
507+
@view-transition {
508+
navigation: auto;
509+
}

templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
/>
2020
<link rel="stylesheet" href="/static/css/style.css?{{ build_id }}" />
2121
<link rel="icon" href="/static/imgs/favicon.ico?{{ build_id }}" />
22+
<meta name="view-transition" content="same-origin" />
2223
<link
2324
rel="alternate"
2425
type="application/atom+xml"

0 commit comments

Comments
 (0)