Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(docs): fade outgoing product transition
Brendan O'Learyc5e086935d43
diff --git a/docs/app/global.css b/docs/app/global.cssindex 04b736a3b..0cb83d1a3 100644--- a/docs/app/global.css+++ b/docs/app/global.css@@ -1187,7 +1187,7 @@ html.docs-product-transition .docs-product-shell {}::view-transition-old(docs-product-shell) {- animation: none;+ animation: 350ms cubic-bezier(0, 0, 0.2, 1) both docs-product-fade-out;z-index: 1;}@@ -1234,6 +1234,12 @@ html.docs-product-transition .docs-product-shell {}}+@keyframes docs-product-fade-out {+ to {+ opacity: 0;+ }+}+@media (prefers-reduced-motion: reduce) {html.docs-product-transition .docs-product-shell {view-transition-name: none;diff --git a/docs/tests/static/product-navigation.test.ts b/docs/tests/static/product-navigation.test.tsindex 493394ae6..95e82206d 100644--- a/docs/tests/static/product-navigation.test.ts+++ b/docs/tests/static/product-navigation.test.ts@@ -77,6 +77,19 @@ describe('Docs product navigation', () => {expect(shouldAnimateDocsProductSwitch(true, true)).toBe(false);});+ test('fades the outgoing product snapshot while revealing the incoming product', async () => {+ const globalCss = await Bun.file(+ new URL('../../app/global.css', import.meta.url),+ ).text();+ const outgoingSnapshotRule = globalCss.match(+ /::view-transition-old\(docs-product-shell\)\s*\{(?<rule>[^}]*)\}/,+ );++ expect(outgoingSnapshotRule?.groups?.rule).toContain('docs-product-fade-out');+ expect(outgoingSnapshotRule?.groups?.rule).not.toContain('animation: none');+ expect(globalCss).toContain('@keyframes docs-product-fade-out');+ });+test('builds audience-specific trees and keeps shared pages in both', () => {const forYouTree = buildProductPageTree(source.pageTree, 'for-you');const platformTree = buildProductPageTree(source.pageTree, 'platform');