Conversation
…itions (issue #1077) Enable smooth page transitions using the View Transition API: - @view-transition { navigation: auto; } opts all pages in - Named #content with slide-in/slide-out animation on navigation - header, #fsdocs-main-menu, #fsdocs-page-menu update instantly (no fade) - prefers-reduced-motion: all transitions disabled Browser support: Chrome 126+, Safari 18.2+. Gracefully ignored elsewhere. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dsyme
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 This PR was created by Repo Assist, an automated AI assistant. Triggered by the
/repo-assistcommand in issue #1077 by@nojaf.Closes #1077
Summary
This is an experiment with the [View Transition API]((developer.mozilla.org/redacted) for cross-document page transitions on fsdocs-generated documentation sites.
What it does
Adds a
@view-transition { navigation: auto; }block and named element annotations tofsdocs-default.css, enabling automatic animated transitions when users navigate between documentation pages.The animation: the main
#contentarea gently slides in from below (12px) while the previous content slides up and fades out. The header, left sidebar (#fsdocs-main-menu), and right "On this page" sidebar (#fsdocs-page-menu) update instantly without any animation, so they don't distract from the content transition.Accessibility:
prefers-reduced-motion: reducedisables all transitions by settinganimation-duration: 0s.Browser support
@view-transitionis gracefully ignoredKey CSS changes
Design decisions
fsdocs-default.cssis changed; the template is untouched.Open questions for maintainers
opacityonly) for subtlety.--fsdocs-view-transitions: auto)?fsdocs-header,fsdocs-main-menu, etc.) conflict with anything users might set in their own_template.html?Test Status
dotnet build FSharp.Formatting.sln— 1 pre-existing warning, 0 errorsdotnet test tests/FSharp.ApiDocs.Tests/— 87 passed, 4 skipped