npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ssgoi/solid

v6.6.6

Published

Solid.js bindings for SSGOI - Native app-like page transitions for Solid applications

Readme

@ssgoi/solid

Solid bindings for SSGOI - Native app-like page transitions for Solid and SolidStart.

try this: ssgoi.dev

https://ssgoi.dev

AI-Assisted Setup

Using Claude, Cursor, ChatGPT, or another AI assistant? Point it at:

https://ssgoi.dev/llms.txt

It has the full setup guide, every transition, the API, and troubleshooting — everything an agent needs to wire SSGOI into your app.

What is SSGOI?

SSGOI brings native app-like page transitions to the web. Transform your static page navigations into smooth, delightful experiences that users love.

✨ Key Features

  • 🌍 Works Everywhere - Unlike the browser's View Transition API, SSGOI works in all modern browsers (Chrome, Firefox, Safari)
  • 🚀 SSR Ready - Perfect compatibility with SolidStart. No hydration issues, SEO-friendly
  • 🎯 Use Your Router - Keep your existing routing. @solidjs/router and SolidStart work seamlessly
  • 💾 State Persistence - Remembers animation state during navigation, even with browser back/forward
  • ⚡ Solid Native - Built on Solid's fine-grained reactivity, so change detection stays minimal

Installation

npm install @ssgoi/solid
# or
yarn add @ssgoi/solid
# or
pnpm add @ssgoi/solid

Quick Start

1. Wrap your app

import { Ssgoi } from "@ssgoi/solid";
import { fade } from "@ssgoi/solid/view-transitions";

const config = {
  transitions: [fade({ paths: ["/", "/about"] })],
};

export default function App(props) {
  return (
    <Ssgoi config={config}>
      {/* position: relative + z-index: 0 are required (see below) */}
      <div style="position: relative; z-index: 0; min-height: 100vh">
        {props.children}
      </div>
    </Ssgoi>
  );
}

2. Mark your pages

Set data-ssgoi-transition on each page boundary element inside <Ssgoi>:

export default function Home() {
  return (
    <main data-ssgoi-transition="/">
      <h1>Welcome</h1>
      {/* Page content */}
    </main>
  );
}

That's it! Your pages now transition smoothly with the configured effect.

Why position: relative; z-index: 0? When a page leaves, SSGOI clones it back into the DOM with position: absolute so it can animate out while the new page animates in. The clone needs a positioned, stacking-context ancestor or it jumps / falls behind the background. Add overflow-x-clip too if you use horizontal transitions (slide, drill).

Advanced Transitions

Each transition factory returns a path-transition group. Drop the results straight into config.transitions — nested arrays are flattened automatically:

import { Ssgoi } from "@ssgoi/solid";
import { fade, drill, zoom } from "@ssgoi/solid/view-transitions";

const config = {
  transitions: [
    // Calm cross-fade between tabs
    fade({ paths: ["/", "/about"] }),

    // iOS-style drill-in when entering a detail page
    drill({ enter: "/products/*", exit: "/products" }),

    // Card-to-detail zoom (needs matching data-zoom-*-key)
    zoom({ paths: ["/gallery", "/photo/*"], type: "expand" }),
  ],
};

Transitions come in three shapes:

  • { paths } — symmetric: every pair animates with the same physics (fade, hero, zoom, blind, film, rotate, strip, jaemin)
  • { enter, exit, type? } — directional: enter and exit get different physics (drill, sheet)
  • { paths } — ordered: path order decides forward / back direction (slide, scroll, axis)

SolidStart Example

Wrap your root component once, then mark each route:

// src/app.tsx
import { Router } from "@solidjs/router";
import { FileRoutes } from "@solidjs/start/router";
import { Ssgoi } from "@ssgoi/solid";
import { scroll } from "@ssgoi/solid/view-transitions";

const config = {
  transitions: [scroll({ paths: ["/", "/about", "/products"] })],
};

export default function App() {
  return (
    <Router
      root={(props) => (
        <Ssgoi config={config}>
          <div style="position: relative; z-index: 0; min-height: 100vh">
            {props.children}
          </div>
        </Ssgoi>
      )}
    >
      <FileRoutes />
    </Router>
  );
}
// src/routes/index.tsx
export default function Index() {
  return <main data-ssgoi-transition="/">{/* Your page content */}</main>;
}

API Reference

<Ssgoi>

The provider component that manages transition context.

<Ssgoi config={ssgoiConfig}>{/* children */}</Ssgoi>

Props:

  • config: SsgoiConfig - transition configuration object
  • host?: HostAnimation - optional external playback host for debug tooling

data-ssgoi-transition

Attribute for pages that should transition. Set it on the page boundary element inside <Ssgoi> — the value (commonly the route path) uniquely identifies the view.

<main data-ssgoi-transition="/page-id">{/* children */}</main>

Built-in Transitions

Import from @ssgoi/solid/view-transitions:

  • fade() - Calm cross-fade. Safe default for unrelated pages
  • drill() - iOS-style hierarchical navigation (list → detail)
  • slide() - Horizontal push for tabs / sequential flows
  • scroll() - Vertical page scroll for onboarding / paginated views
  • axis() - Material/Flutter shared-axis swap for sibling/tab routes
  • sheet() - Bottom sheet that slides up (modal-like flows)
  • hero() - Shared element transition (matching data-hero-enter-key / data-hero-exit-key)
  • zoom() - Card-to-detail expansion (matching data-zoom-enter-key / data-zoom-exit-key)
  • strip() - 3D Y-axis perspective flip
  • blind() - Window-blinds wipe reveal
  • film() - Cinematic shrink + tile (gallery / lightbox)
  • rotate() - Card flip between siblings
  • jaemin() - Playful rotated zoom for special moments

TypeScript Support

SSGOI is written in TypeScript and provides full type definitions:

import type { SsgoiConfig } from "@ssgoi/solid";

const config: SsgoiConfig = {
  // Full type safety
};

Browser Support

  • Chrome/Edge 88+
  • Firefox 78+
  • Safari 14+
  • All modern mobile browsers

License

MIT © MeurSyphus

Links