@devries-cameron20 / composio Mirror · read-only / commits / c5e086935
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 13:30 UTC

fix(docs): fade outgoing product transition

Brendan O'Leary committed Sep 2, 2026 at 10:21 UTC c5e086935d432b01508abbc07011dcc483dba719
2 files changed +20 -1
docs/app/global.css
+7 -1
@@ -1187,7 +1187,7 @@ html.docs-product-transition .docs-product-shell {
1187 }
1188
1189 ::view-transition-old(docs-product-shell) {
1190 - animation: none;
1190 + animation: 350ms cubic-bezier(0, 0, 0.2, 1) both docs-product-fade-out;
1191 z-index: 1;
1192 }
1193
@@ -1234,6 +1234,12 @@ html.docs-product-transition .docs-product-shell {
1234 }
1235 }
1236
1237 +@keyframes docs-product-fade-out {
1238 + to {
1239 + opacity: 0;
1240 + }
1241 +}
1242 +
1243 @media (prefers-reduced-motion: reduce) {
1244 html.docs-product-transition .docs-product-shell {
1245 view-transition-name: none;
docs/tests/static/product-navigation.test.ts
+13
@@ -77,6 +77,19 @@ describe('Docs product navigation', () => {
77 expect(shouldAnimateDocsProductSwitch(true, true)).toBe(false);
78 });
79
80 + test('fades the outgoing product snapshot while revealing the incoming product', async () => {
81 + const globalCss = await Bun.file(
82 + new URL('../../app/global.css', import.meta.url),
83 + ).text();
84 + const outgoingSnapshotRule = globalCss.match(
85 + /::view-transition-old\(docs-product-shell\)\s*\{(?<rule>[^}]*)\}/,
86 + );
87 +
88 + expect(outgoingSnapshotRule?.groups?.rule).toContain('docs-product-fade-out');
89 + expect(outgoingSnapshotRule?.groups?.rule).not.toContain('animation: none');
90 + expect(globalCss).toContain('@keyframes docs-product-fade-out');
91 + });
92 +
93 test('builds audience-specific trees and keeps shared pages in both', () => {
94 const forYouTree = buildProductPageTree(source.pageTree, 'for-you');
95 const platformTree = buildProductPageTree(source.pageTree, 'platform');