Glimm: Shader-Driven Page Transitions for React and Next.js

LinkNomanTool

Glimm adds lightweight WebGL shader sweeps to route and state changes in React and Next.js applications. Weighing around 11 KB with zero runtime dependencies, it incurs no overhead until the first sweep is triggered. It helps developers apply polished visual transitions to key interface moments.

Key points

  1. Lightweight package (~11 KB) with no runtime dependencies; requires React 18+ and Next.js 14+ as peer dependencies.
  2. Zero overhead upfront as the WebGL context initialises exclusively on the first sweep.
  3. Provides three trigger mechanisms: TransitionLink, useTransitionRouter(), and an InterceptLinks wrapper.
  4. Includes 7 palette presets, custom cosine-formula palettes, 10 easing curves, and configurable shader physics.
  5. Experimental HTML-in-Canvas feature (Chrome 157+) enables physical DOM warping behind the sweep while retaining accessibility.

Why it matters

Glimm brings high-end WebGL transition shaders into standard Next.js setups without heavy 3D engine overhead or custom shader boilerplate.

Analysis

Developed by Noman and released under the MIT licence (v0.4.1), Glimm sweeps a WebGL band across the screen during route transitions or state changes, revealing the destination view behind it. Integration in Next.js involves wrapping children in GlimmProvider inside the root layout. Navigation can be triggered via TransitionLink, programmatically via useTransitionRouter(), or automatically across all internal links with InterceptLinks, while single links can opt out using data-glimm-skip.

Palettes rely on cosine-based algorithmic colour generation via four RGB triplets, eliminating the need for image textures. Transitions can be adjusted using parameters such as sweepMs, outroMs, midpoint, band width, and ten built-in easing algorithms. For automated workflows, an AI coding agent skill is provided via nomanjack/glimm-skill.

A notable addition is experimental support for HTML-in-Canvas in Chrome 157+. Wrapped in GlimmScope, actual DOM elements are rendered inside the canvas and dynamically ripple or gather towards user clicks without breaking scrolling, click handlers, or screen readers. Unsupported browsers gracefully fall back to the standard sweep overlay, and reduced-motion preferences are strictly respected.

Found in

Summary generated by AI (Gemini 3.8 Flash, 15 November 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • X post:Noman

    Glimm: Shader-Driven WebGL Transitions for React and Next.js

    Glimm is a lightweight library providing shader-driven page transitions for React and Next.js applications. A WebGL band sweeps across the viewport on route or state changes, revealing the incoming view. It offers a subtle, modern alternative to common celebration animations like confetti.

    1.7kbookmarks47.8kviews

    Web development· Tool

  • Link:Subframe

    Subframe Motion: Open-Source React Animations and Shaders via MCP

    Subframe Motion is a curated library of 309 open-source React animations, Motion components, and WebGL shaders. Available without an account, it can also be accessed directly via the Model Context Protocol (MCP) to help frontend developers and designers build interactive UIs.

    Web development· Resource

  • Repository:DavidHDev/canvas-ui

    Canvas UI: Creative WebGL and Shader Effects for HTML Interfaces

    Canvas UI is a component library that renders canvas effects—such as fluid simulations, shaders, and 3D scenes—directly over live, interactive HTML interfaces. It is framework-agnostic and supports React, Vue, Svelte, and vanilla JavaScript.

    4.9kstarsTypeScript

    Web development· Tool

  • Link:Solace

    Shaders / Solace: Interactive WebGL Shaders for the Web

    Solace provides a collection of interactive WebGL shaders designed for websites, brand experiences, and digital products. Creators can explore visual effects, fine-tune parameters live in the browser, and integrate them into their projects.

    Web development· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.