Native app-like page transitions for mobile web apps, PWAs, and WebView apps.
Router agnostic · Cross-browser · SSR ready · Web Animations API powered
| Drill | Sheet |
|---|---|
![]() |
![]() |
| Navigate through a mobile app with spatial depth | Present focused tasks above the current page |
| Router agnostic | Keep your existing router and let it own navigation. |
| Cross-browser | Use the same transitions across Chrome, Safari, Firefox, and Edge. |
| Optimized motion | Spring physics are precomputed into Web Animations API keyframes. |
| Beyond the View Transition API | Build transitions that need live DOM, runtime layers, and precise geometry. |
| Easy to adopt | Add SSGOI by changing only two files. |
Give this URL to Claude, Codex, Cursor, or another coding agent:
https://ssgoi.dev/llms.txt
It contains the full setup for React and Next.js, Svelte and SvelteKit, Vue and Nuxt, Solid and SolidStart, Angular, and Qwik.
The same mobile-web-app skill works in Codex and Claude Code.
Codex:
codex plugin marketplace add meursyphus/ssgoi
codex plugin add ssgoi@ssgoiClaude Code:
claude plugin marketplace add meursyphus/ssgoi
claude plugin install ssgoi@ssgoiThen ask the agent to apply SSGOI to the current mobile web app. The skill reads
the canonical llms.txt, selects the matching framework guide, and follows the
app's existing router and layout structure.
The Next.js setup is one config, one provider that knows how to read the Next.js route, and one ready-made layout boundary.
npm install @ssgoi/react// app/ssgoi-provider.tsx
"use client";
import { type ReactNode } from "react";
import { usePathname, useSelectedLayoutSegments } from "next/navigation";
import { Ssgoi, type SsgoiFramework } from "@ssgoi/react";
import { drill } from "@ssgoi/react/view-transitions";
const config = {
transitions: [{ on: "/**", except: "/", transition: drill() }],
};
const INTERCEPTION_PREFIX = /^(?:\(\.\.\.\)|\(\.\.\)|\(\.\))+/;
const framework: SsgoiFramework = {
useRoute: () => {
const pathname = usePathname();
// The page the children slot renders. During a soft intercept it is still
// the background page, so no background boundary moves.
const segments = useSelectedLayoutSegments();
if (pathname == null) return null;
const renderedPath = `/${segments
.filter((segment) => !(segment.startsWith("(") && segment.endsWith(")")))
.map((segment) => segment.replace(INTERCEPTION_PREFIX, ""))
.filter(Boolean)
.join("/")}`;
return { pathname, renderedPath };
},
};
export function SsgoiProvider({ children }: { children: ReactNode }) {
return (
<Ssgoi config={config} framework={framework}>
{children}
</Ssgoi>
);
}Import the layout boundary from the same package. It takes no props: the first
boundary reads the route for the ones inside it (and throws without a
framework), and
renderedPath keeps an intercepted modal's background in place:
import { SsgoiLayoutBoundary } from "@ssgoi/react";
<SsgoiLayoutBoundary>{children}</SsgoiLayoutBoundary>;// app/layout.tsx
import { type ReactNode } from "react";
import { SsgoiLayoutBoundary } from "@ssgoi/react";
import { SsgoiProvider } from "./ssgoi-provider";
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body>
<main className="relative z-0 min-h-dvh overflow-x-clip">
<SsgoiProvider>
<SsgoiLayoutBoundary>{children}</SsgoiLayoutBoundary>
</SsgoiProvider>
</main>
</body>
</html>
);
}The class string above is Tailwind shorthand. Without Tailwind, apply
position: relative; z-index: 0; min-height: 100dvh; overflow-x: clip to the
shell. Use 100vh only where dvh is unsupported.
That is enough for a simple app. @ssgoi/react never imports Next.js; it calls
the useRoute hook you wrote. Other frameworks use the same small boundary
model with their own router state passed as framework. For complete files,
persistent layouts, nested boundaries, and framework-specific setup, see the
documentation. Upgrading from 7.x, where
router subpaths such as @ssgoi/react/nextjs were still available? See the
8.0 migration guide.
SSGOI depends on the broadly available Web Animations API instead of requiring the View Transition API.
Chrome 84+ |
Safari 13.1+ |
Firefox 75+ |
Edge 84+ |
|---|
These are core Web Animations API runtime targets. The blur types in Sheet and
Zoom also use backdrop-filter (Firefox 103+); earlier Firefox keeps the
transition, scale, and dimming but omits the backdrop blur.
The same build runs inside WebView shells — Capacitor, Ionic, Tauri, React Native WebView — and as an installed PWA, with no native plugin. iOS and Android back swipes are left to the OS. Make a web app feel native →
It observes the DOM lifecycle your framework already owns, so routing and SSR stay with your existing stack.
Next.js |
React Router |
TanStack Router |
SvelteKit |
Nuxt |
|---|
React · Svelte · Vue · Solid · Angular · Qwik · framework-agnostic core
An experimental React Native / Expo Router integration
adds native fade/slide transitions with the same SsgoiLayoutBoundary naming.
Try the Expo template for the current implementation and device checks.
See complete compatibility and framework guides →
Need the app screens too? Comwit UI is a mobile app component kit built on SSGOI: app shell, app bar, bottom nav, bottom sheet, pull to refresh, and page transitions.
SSGOI owns the geometry, temporary visual layers, live outgoing DOM, and navigation policy needed to turn complex motion into reusable presets.
| Zoom | Film | Sheet |
|---|---|---|
![]() |
![]() |
![]() |
| The whole detail page unfolds from its image | Runtime scene, live video, and multiple springs | A live backdrop sits between the two pages |
Read why SSGOI doesn't use the View Transition API →



