Skip to content

Commit

Permalink
Turn off view transitions on mobile
Browse files Browse the repository at this point in the history
Unfortunately view transitions do not work correctly with finger swipes
that go forward / backward in history.

See these issues for more details:

- w3c/csswg-drafts#8333
- whatwg/html#8782
- w3c/csswg-drafts#8747
  • Loading branch information
guilhermesimoes committed Jan 31, 2025
1 parent 9c445cd commit c3b6faf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
$header-height: 3.2rem;
$menu-opening-duration: 0.3s;

@view-transition {
navigation: auto;
@media (pointer: fine) {
@view-transition {
navigation: auto;
}
}

html {
Expand Down

0 comments on commit c3b6faf

Please sign in to comment.