Components / effect

Circle Reveal Transition

v1.0.0 · premium

The next page opens as a growing circle from a point you choose, and closes back into it when going back.

Circle Reveal Transition demo

Implementation

The next page opens as a growing circle from a point you choose, and closes back into it when going back.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function CircleReveal({ viewKey, children, direction = 'forward', duration = 1000, originX = 50, originY = 50, cl
  /** A key that changes for each page, such as the route path. */
  viewKey: string;

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · The next page opens as a growing circle from a point you choose, and closes back into it when going back.

Frequently asked questions

Can the circle open from where the visitor clicked?

Yes. Pass originX and originY as percentages. Read the click position in your own handler and set them before you change the key.

What does going back do?

With direction back the old page closes into a circle and uncovers the earlier page beneath it, so the motion mirrors the way in.