Components / effect

Slide Push Transition

v1.0.0 · premium

The next page pushes in from the side while the old page drifts away more slowly and dims.

Slide Push Transition demo

Implementation

The next page pushes in from the side while the old page drifts away more slowly and dims.

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 SlidePush({ viewKey, children, direction = 'forward', duration = 1000, className }: {
  /** 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 pushes in from the side while the old page drifts away more slowly and dims.

Frequently asked questions

Why does the old page move less than the new one?

The old page drifts a fraction of the distance and dims while the new page covers the full width. The difference in speed reads as depth.

Can I push the page in from the left?

Yes. Pass direction back and the new page pushes in from the left while the old page drifts to the right.