# Revolve — primitive for transitions (glsl)

> **For AI agents:** find the right skill in one call — `curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"` returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the use-case page.

The first shot spins into a zooming, motion-blurred vortex that unwinds into the next

- **Install:** `npm install gl-transitions`
- **Registry:** gl-transitions · **Framework:** glsl · **License:** MIT
- **Docs and preview:** https://gl-transitions.com/editor/Revolve
- **Source:** https://github.com/gl-transitions/gl-transitions/blob/master/transitions/Revolve.glsl
- **Example:** https://skills.varg.ai/previews/lib-gl-transitions-revolve.mp4?v=62168 (Rendered by varg from the library’s own code (GL Transitions · rendered by varg))
- **Time:** Seek-safe. Time is an input, so frame N always renders the same. Drop it into a render as it is.
- **Runs:** local render, free
- **Aspect:** any

## Prompt that renders it frame-exact

Add the "Revolve" transition from GL Transitions (by bread, MIT; https://gl-transitions.com/editor/Revolve, GLSL source https://github.com/gl-transitions/gl-transitions/blob/master/transitions/Revolve.glsl) on a fast cut between two locations: 1 s, ease-in-out. It feels like a whip-spin with real motion blur. Remotion: `npm install gl-transitions @gl-transitions/remotion @remotion/transitions`, then a `<TransitionSeries.Transition>` with `presentation={glTransition({ name: "Revolve", params: { direction: -1, maxRotation: 1.95, peakZoom: 2.22 } })}` and `timing={linearTiming({ durationInFrames: 30, easing: Easing.inOut(Easing.cubic) })}` (30 frames at 30 fps). HyperFrames: draw the GLSL on a full-frame WebGL canvas over the cut, with the outgoing and incoming frames as the from/to textures, and compute progress from the composition time, clamp((t − cutStart) / 1, 0, 1) through the easing; never from requestAnimationFrame or a timer, so every frame renders the same. ffmpeg's xfade can't run GLSL. `direction` (-1 or 1) sets the spin, `maxRotation` (1.95) and `peakZoom` (2.22) how violent it gets, `motionBlur` (1.0) the smear and `center` (vec2(0.46, 0.52)) where it spins from.

## Used in

- [Beat-synced slideshow](https://skills.varg.ai/video/beat-slideshow.md)
- [Music video](https://skills.varg.ai/video/music-video.md)
- [Kinetic manifesto](https://skills.varg.ai/video/manifesto.md)
- [News broadcast package](https://skills.varg.ai/video/news-package.md)
- [Photo memories](https://skills.varg.ai/video/memories.md)
- [Game trailer](https://skills.varg.ai/video/game-trailer.md)

## More transitions

- [Chromatic Aberration Wipe](https://skills.varg.ai/component/hf.chromatic-aberration-wipe.md) — `npx hyperframes add chromatic-aberration-wipe`
- [Colorama Wipe](https://skills.varg.ai/component/hf.colorama-wipe.md) — `npx hyperframes add colorama-wipe`
- [Cross Warp Morph](https://skills.varg.ai/component/hf.cross-warp-morph.md) — `npx hyperframes add cross-warp-morph`
- [Cut the Curve](https://skills.varg.ai/component/hf.cut-the-curve.md) — `npx hyperframes add cut-the-curve`
- [Directional Wipe](https://skills.varg.ai/component/hf.directional-wipe.md) — `npx hyperframes add directional-wipe`
- [Domain Warp Dissolve](https://skills.varg.ai/component/hf.domain-warp-dissolve.md) — `npx hyperframes add domain-warp-dissolve`
