SSGOI
SSR就绪

视图过渡

为网页构建原生应用般的页面过渡效果

与Next.js、Nuxt、SvelteKit等所有SSR框架完美兼容。创建令人惊叹的动画效果,同时不影响SEO。

React

npm install @ssgoi/react

Svelte

npm install @ssgoi/svelte

Vue (即将推出)

npm install @ssgoi/vue

SolidJS (即将推出)

npm install @ssgoi/solid

Qwik (即将推出)

npm install @ssgoi/qwik

Latest Posts

Insights on Svelte, Flutter, and web development

Understanding Svelte 5 Runes: The Future of Reactivity

Understanding Svelte 5 Runes: The Future of Reactivity

Dive deep into Svelte 5's new rune system and discover how it revolutionizes state management and reactivity.

Sarah ChenSarah Chen12mSvelte
Mastering Flutter Animations: From Basics to Advanced

Mastering Flutter Animations: From Basics to Advanced

Learn how to create beautiful, performant animations in Flutter that bring your mobile apps to life.

Michael ParkMichael Park15mFlutter
Building Scalable Applications with SvelteKit

Building Scalable Applications with SvelteKit

A comprehensive guide to architecting large-scale applications with SvelteKit, covering best practices, patterns, and real-world examples.

Emma WilsonEmma Wilson18mSvelteKit
React Server Components: A Deep Dive

React Server Components: A Deep Dive

Understanding the revolutionary React Server Components and how they change the way we build React applications.

Alex JohnsonAlex Johnson10mReact
Modern CSS Techniques You Should Know in 2024

Modern CSS Techniques You Should Know in 2024

Explore the latest CSS features including Container Queries, Cascade Layers, and the :has() selector that are revolutionizing web styling.

Maria GarciaMaria Garcia8mCSS
Web Performance Optimization: A Comprehensive Guide

Web Performance Optimization: A Comprehensive Guide

Master the art of web performance with modern techniques including Core Web Vitals optimization, resource hints, and cutting-edge loading strategies.

David KimDavid Kim14mPerformance
Advanced TypeScript Patterns for Production

Advanced TypeScript Patterns for Production

Level up your TypeScript skills with advanced patterns including type guards, conditional types, and template literal types.

James ChenJames Chen12mTypeScript
始终60fps
状态记忆

所有环境中提供相同体验

无论使用哪种框架都能使用一致的API

JavaScript
JavaScript
React
React
Svelte
Svelte
Vue
Vue(即将推出)
SolidJS
SolidJS(即将推出)
Qwik
Qwik(即将推出)

为什么选择SSGOI

只需记住这3点

完美的SSR支持

与Next.js、Nuxt、SvelteKit等SSR框架完美配合。创建优美的页面过渡效果而不牺牲SEO。

全浏览器兼容

在Chrome、Firefox、Safari和所有现代浏览器中提供一致的体验。

零配置

直接使用您框架的路由。无需复杂设置即可立即开始。

惊人的简洁代码

只需几行代码即可实现页面过渡动画

// app/layout.tsx
import { Ssgoi, SsgoiConfig } from '@ssgoi/react'
import { fade, hero } from '@ssgoi/react/view-transitions'

const config: SsgoiConfig = {
  transitions: [
    {
      from: "/*", to: "/profile", transition: fade()
    },
    {
      from: "/posts", to: "/posts/*", transition: hero()
    },
  ],
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <Ssgoi config={config}>
      {children}
    </Ssgoi>
  )
}
// app/posts/page.tsx
import { SsgoiTransition } from '@ssgoi/react'

export default function PostsPage() {
  return (
    <SsgoiTransition id="/posts">
      <div>
        <h1>Posts List</h1>
        {/* Page Content */}
      </div>
    </SsgoiTransition>
  )
}

立即开始

只需5分钟。使用SSGOI为网页添加原生应用体验。

SSGOI - 为现代网页应用打造优美的页面过渡效果