Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-overdrive

> 前端框架
Open source

Super easy magic-move transitions for React apps

3.0K stars0 likes0 views
WebsiteGitHub

About

Super easy magic-move transitions for React apps

react-overdrive

Super easy magic-move transitions for React apps.

Demos

  1. Page transitions

  2. Image Gallery with next.js

  3. With React Router

Install

$ npm install react-overdrive --save

Usage

Example with routing

Wrap any element (not just images) in a <Overdrive id=""></Overdrive> component. Add the same id to create a transition between the elements.

On page1.js:

import Overdrive from 'react-overdrive'

const pageA = (props) => (
  

);

On page2.js:

import Overdrive from 'react-overdrive'

const pageB = (props) => (
  

);

Now route between the pages.

Example without routing

On page.js:

import Overdrive from 'react-overdrive'

const page = (props) => (
  

);

API

Prop Description Default Value id Required. A unique string to identify the component. element Wrapping element type. 'div' duration Animation duration (in milliseconds). 200 easing Animation easing function. '' animationDelay Add delay of calculating the mounted component position. Setting to 1 usually helps avoiding issues with window scrolling. null onAnimationEnd Event dispatched when the animation has finished. null

How does it work?

A transition is made when an <Overdrive id="example"/> component is unmounted and another <Overdrive id="example"/> is mounted not later than 100ms.

The transition is made by cloning the unmounted and mounted components, adding them with absolute position and CSS transformed from the source to the target position.

Sponsors

Thanks to the following companies for generously providing their services/products to help improve this project:

Thanks to BrowserStack for providing cross-browser testing.

Who made this?

Tal Bereznitskey. Find me on Twitter as @ketacode.

GitHub Issues· 0 open

View all on GitHub

No open issues yet, or sync has not completed.

Highlights

  • •JavaScript
  • •animations
  • •magic-move
  • •react
  • •router

> Tags

JavaScriptanimationsmagic-movereactrouter

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架