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

X postNomanTool

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.

Key points

  1. Weighs around 11 KB with zero runtime dependencies and initializes WebGL only on the first sweep.
  2. Requires React 18+ and Next 14+ as peer dependencies and integrates via a root layout provider.
  3. Includes seven built-in color palettes, customizable cosine-based color formulas, and ten easing curves.
  4. Version 0.4 introduces HTML-in-Canvas support for Chrome, scoped container transitions, and an AI agent skill.

Why it matters

Glimm gives frontend teams an efficient, visually polished way to mark key user milestones and major UI transitions without loading heavyweight animation libraries.

Analysis

How Glimm Works

Creator Noman presents Glimm as an alternative to conventional celebration visuals like confetti. The library renders a shader-driven band across the screen during route transitions or custom state updates, smoothly displaying the new interface underneath. Setup requires wrapping children in <GlimmProvider> at the root. Navigation can then be triggered via <TransitionLink>, the useTransitionRouter() hook for programmatic redirects, or <InterceptLinks /> for blanket internal link handling.

Customisation and Version 0.4 Features

Transitions can be adjusted through props governing band width (bandTight), duration (sweepMs), direction, and route swap timings (midpoint). Palettes use cosine color formulas that can be generated or selected from seven presets.

Key capabilities introduced in version 0.4 include:

  • HTML-in-Canvas support: Allows the shader to interact directly with page content inside Chrome.
  • GlimmScope: Restricts the sweep effect to a specific card or section rather than the whole screen.
  • Agent Skill: Provides automated setup via npx skills add nomanjack/glimm-skill (Node 22.20+).

Recommended Best Practices

The documentation advises against firing sweeps on every navigation or treating them as replacement spinners for skeleton loading states. Frequent triggers diminish the visual impact. Glimm is best reserved for significant actions, such as completed submissions, checkout flows, or major section transitions.

Original post

Noman

@Nomandsign · 13 November 2026

If you are using confetti in your web app, replace it with glimm t.co/gi3i850Lhd t.co/kyTWraWwqX

1.3k likes25 replies1.7k bookmarks47.8k views

View on X
More posts in the thread (9)
  1. @JBMoriconi 🫶
  2. @amfonte 👀
  3. @timekeepur Nice 👏
  4. @AFisolami 😊
  5. @Noambhs Hmm why do you think that? Can you elaborate
  6. @0xZoZoZo Nice idea 👀
  7. @squidllee Nicee. Show me
  8. @ArpitChandak18 😊
  9. @chanbandara94 It's html-in-canvas on chrome
Selected replies (5)
  • @timekeepur @Nomandsign Good stuff - used it for persona-based UI transform on t.co/2WoJz05jJ0 t.co/B8jGkgpTEk
  • @JBMoriconi @Nomandsign Glimm is super cool actually
  • @AFisolami @Nomandsign your work inspire me alot man, super cool! and thanks for this
  • @0xZoZoZo @Nomandsign That soft glow would work nicely when an export finishes.
  • @Noambhs @Nomandsign I mean it looks cool but a completely different vibe from confetti

Links and tools from this entry

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.

  • Link:Noman

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

    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.

    Web development· Tool

  • 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: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

  • X post:Houdayfa

    UIArc: Animated React Components for shadcn and Next.js

    Houdayfa highlights UIArc, a component library created by Elia Kuratli. It offers 149 React components and 87 pre-built UI blocks with integrated micro-interactions designed for Next.js and the shadcn ecosystem.

    869bookmarks34kviews

    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.