# glimm

> Shader-driven page transitions for Next.js: links trigger a WebGL wipe between routes.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/glimm

free

Shader-driven page transitions for Next.js: links trigger a WebGL wipe between routes.

by Noman Ijaz[npm](https://npmjs.com/package/glimm)

[visit](https://glimm.dev/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://glimm.dev](https://glimm.dev/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [React <ViewTransition>](https://tastebase.ehsanulsiam.workers.dev/browse/react-view-transition)

React 19.3's built-in wrapper for the browser View Transitions API: animated route and state changes with no library.

no preview

### [Sakuga VFX](https://tastebase.ehsanulsiam.workers.dev/browse/sakuga-vfx)

Everyday controls (button, toggle, slider, checkbox, toast) that react like anime: spring squash, impact bursts, manga sound effects.

no preview

### [Paper Shaders](https://tastebase.ehsanulsiam.workers.dev/browse/paper-shaders)

Zero-dependency WebGL shader backgrounds: mesh gradients, grain, dithering, liquid metal and more.

no preview

### [ShaderGradient](https://tastebase.ehsanulsiam.workers.dev/browse/shadergradient)

Animated 3D gradient planes and spheres, designed in a web editor and pasted in as a URL.

## For your agent

##### Install

`npm i glimm`

##### Use it for

- page transitions between routes in a Next.js site, drawn with a WebGL shader

##### Skip it when

- an app people use all day: route transitions slow them down; use react-view-transition sparingly
- a non-Next React app that wants links to transition on their own: only glimm/next intercepts navigation; glimm/react needs a sweep() call per navigation

##### What's inside19 free

- GlimmProvider
- TransitionLink
- useTransitionRouter
- InterceptLinks
- useGlimm
- usePageEffect
- createShader
- createMeshShader
- playSweep
- Spectrum
- Prism
- Berry
- Lagoon
- Citrus
- Azure
- Ember
- Custom palette
- Easing presets
- HTML-in-Canvas

##### Facts

**Frameworks**
react

**Styling**
unstyled

**Weight**
small

**Accessibility**
weak

**Maturity**
experimental

**License**
MIT

**Price**
Free

##### Alternatives

[React <ViewTransition>](https://tastebase.ehsanulsiam.workers.dev/browse/react-view-transition)

```
// app/layout.tsx
import { GlimmProvider, InterceptLinks } from "glimm/next"

<GlimmProvider palette="prism">
  <InterceptLinks />
  {children}
</GlimmProvider>
```

https://glimm.dev

Loading website

[Visit](https://glimm.dev/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
