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/angular

v6.6.6

Published

Angular bindings for SSGOI - Native app-like page transitions for Angular applications

Downloads

637

Readme

@ssgoi/angular

Angular bindings for SSGOI that give any Angular 20+ app native-feeling page transitions powered by the @ssgoi/core animation engine.

try this: 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.

Installation

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

What You Get

  • Ssgoi directive (selector: [ssgoi]) that bootstraps the core transition context on the client and gracefully no-ops during SSR.
  • data-ssgoi-transition route markers discovered automatically inside [ssgoi].
  • Deprecated SsgoiTransition directive (selector: [ssgoiTransition]) kept for backward compatibility.
  • injectSsgoi() helper and SSGOI_CONTEXT injection token for retrieving the transition context anywhere in your component tree.
  • Re-exported transition factories under @ssgoi/angular/view-transitions.

Quick Start

1. Provide the transition context once

import { Component, signal } from "@angular/core";
import { RouterOutlet } from "@angular/router";
import { Ssgoi, SsgoiConfig } from "@ssgoi/angular";
import { fade } from "@ssgoi/angular/view-transitions";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [RouterOutlet, Ssgoi],
  template: `
    <!-- position: relative + z-index: 0 are required (the outgoing page is cloned with position:absolute) -->
    <div
      ssgoi
      [config]="ssgoiConfig()"
      style="position: relative; z-index: 0; min-height: 100vh"
    >
      <router-outlet />
    </div>
  `,
})
export class AppComponent {
  protected readonly ssgoiConfig = signal<SsgoiConfig>({
    transitions: [fade({ paths: ["/home", "/about"] })],
  });
}

2. Mark each routed view

import { Component } from "@angular/core";

@Component({
  selector: "app-home",
  standalone: true,
  template: `
    <section data-ssgoi-transition="/home">
      <h1>Home Page</h1>
    </section>
  `,
})
export class HomeComponent {}

The data-ssgoi-transition value should uniquely identify the view (commonly the route path).

How It Works

  • Ssgoi wraps createSggoiTransitionContext from @ssgoi/core, injects it via SSGOI_CONTEXT, and observes data-ssgoi-transition elements under the host. The directive guards against the server platform so SSR renders stay deterministic.
  • The deprecated SsgoiTransition directive still sets data-ssgoi-transition and registers the host directly for backward compatibility.

Because everything is driven by signals, Angular change detection stays minimal and the bundle remains fully tree-shakeable.

API Reference

  • Ssgoi
    • config: SsgoiConfig (input, optional) – global transition configuration. Uses {} as default.
    • host: HostAnimation | undefined (input, optional) – external playback host for debug tooling.
  • data-ssgoi-transition – identifier for the target view/container.
  • SsgoiTransition is deprecated; use data-ssgoi-transition directly.
  • injectSsgoi(): SsgoiContext – returns the adapter context. During SSR it falls back to a no-op implementation so you can call it unconditionally.

Available Transitions

Import view-level factories from @ssgoi/angular/view-transitions:

import {
  fade,
  drill,
  slide,
  scroll,
  axis,
  sheet,
  hero,
  zoom,
  strip,
  blind,
  film,
  rotate,
  jaemin,
} from "@ssgoi/angular/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

Each factory takes the unified config: { paths } (symmetric), { enter, exit, type? } (directional, e.g. drill/sheet), or { paths } with order deciding direction (slide/scroll/axis).

Sample Configuration

import { fade, scroll } from "@ssgoi/angular/view-transitions";
import type { SsgoiConfig } from "@ssgoi/angular";

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

License

MIT © MeurSyphus

Links