SSGOI brings native app-like page transitions to the web. Transform your static page navigations into smooth, delightful experiences that users love.
try this: ssgoi.dev
# React
npm install @ssgoi/react
# Svelte
npm install @ssgoi/svelte
import { Ssgoi } from '@ssgoi/react';
import { fade } from '@ssgoi/react/view-transitions';
export default function App() {
return (
<Ssgoi config={{ defaultTransition: fade() }}>
<div style={{ position: 'relative' }}>
{/* Your app */}
</div>
</Ssgoi>
);
}
import { SsgoiTransition } from '@ssgoi/react';
export default function HomePage() {
return (
<SsgoiTransition id="/">
<h1>Welcome</h1>
{/* Page content */}
</SsgoiTransition>
);
}
That's it! Your pages now transition smoothly with a fade effect.
Define different transitions for different routes:
const config = {
transitions: [
// Scroll between pages
{ from: '/home', to: '/about', transition: scroll({ direction: 'up' }) },
{ from: '/about', to: '/home', transition: scroll({ direction: 'down' }) },
// Drill when entering details
{ from: '/products', to: '/products/*', transition: drill({ direction: 'enter' }) },
// Pinterest-style image transitions
{ from: '/gallery', to: '/photo/*', transition: pinterest() }
],
defaultTransition: fade()
};
Automatically create bidirectional transitions:
{
from: '/home',
to: '/about',
transition: fade(),
symmetric: true // Automatically creates reverse transition
}
Animate specific elements during mount/unmount:
import { transition } from '@ssgoi/react';
import { fadeIn, slideUp } from '@ssgoi/react/transitions';
function Card() {
return (
<div ref={transition({
key: 'card',
in: fadeIn(),
out: slideUp()
})}>
<h2>Animated Card</h2>
</div>
);
}
fade
- Smooth opacity transitionscroll
- Vertical scrolling (up/down)drill
- Drill in/out effect (enter/exit)hero
- Shared element transitionspinterest
- Pinterest-style expand effectfadeIn
/ fadeOut
slideUp
/ slideDown
/ slideLeft
/ slideRight
scaleIn
/ scaleOut
bounce
blur
rotate
// app/layout.tsx
import { Ssgoi } from '@ssgoi/react';
import { fade } from '@ssgoi/react/view-transitions';
export default function RootLayout({ children }) {
return (
<html>
<body>
<Ssgoi config={{
defaultTransition: fade()
}}>
<div style={{ position: 'relative', minHeight: '100vh' }}>
{children}
</div>
</Ssgoi>
</body>
</html>
);
}
// app/page.tsx
import { SsgoiTransition } from '@ssgoi/react';
export default function Page() {
return (
<SsgoiTransition id="/">
{/* Your page content */}
</SsgoiTransition>
);
}
<!-- +layout.svelte -->
<script>
import { Ssgoi } from '@ssgoi/svelte';
import { fade } from '@ssgoi/svelte/view-transitions';
</script>
<Ssgoi config={{ defaultTransition: fade() }}>
<div style="position: relative; min-height: 100vh;">
<slot />
</div>
</Ssgoi>
<!-- +page.svelte -->
<script>
import { SsgoiTransition } from '@ssgoi/svelte';
import { page } from '$app/stores';
</script>
<SsgoiTransition id={$page.url.pathname}>
<!-- Your page content -->
</SsgoiTransition>
SSGOI intercepts DOM lifecycle events to create smooth transitions:
All powered by a spring physics engine for natural, smooth motion.
Try out SSGOI with our framework-specific demo applications:
pnpm react-demo:dev
# Opens at http://localhost:3001
Explore Next.js App Router integration with various transition effects.
pnpm svelte-demo:dev
# Opens at http://localhost:5174
See SvelteKit integration with smooth page transitions.
Visit the /apps
directory to explore the demo source code and learn how to implement SSGOI in your own projects.
Visit https://ssgoi.dev for:
We welcome contributions! Please see our contributing guide for details.
MIT © MeurSyphus