UNPKG

react-motion-layout

Version:

Create beautiful immersive hero animations using shared components.

49 lines (35 loc) 1.71 kB
<p align="center"> <img src="http://motion-layout.com/img/logo.png" alt="drawing" width="100"/> </p> <h2 align="center">Motion Layout</h2> <p align="center"> <a href="https://www.npmjs.com/package/react-motion-layout"><img src="https://img.shields.io/npm/v/react-motion-layout?style=flat-square"></a> <a href="https://bundlephobia.com/result?p=react-motion-layout@0.1.1"><img src="https://img.shields.io/bundlephobia/min/react-motion-layout?style=flat-square"></a> <a href="http://motion-layout.com"><img src="https://github.com/jeffersonlicet/react-motion-layout/workflows/Website%20Deploy/badge.svg"></a> </p> <p align="center">Create beautiful immersive React hero animations using shared components.</p> <p align="center"> <img src="https://media.giphy.com/media/L0Sog8CoIRlNjvbOvj/giphy.gif"> </p> ___ ## Docs [React Motion Layout Docs](http://motion-layout.com) ## About #### Motivation There are amazing libraries like framer-motion that help you create animations when mounting or unmounting components. But, if two routes have the same image in different positions and sizes, they cannot be animated together. With Motion Layout, you can link components together to animate them when changing views. #### Browser support Supported on modern versions of all major browsers including: - Chrome 56+ - Firefox 27+ - IE10+ (including Edge) - Safari (iOS) 7.1+ - Safari (Mac) 9+ - Firefox Mobile - Chrome for Android - Android Webview #### Declarative Easy as wraping your text or images with our SharedElement component. #### Isolated It doesn't require external state management libs. #### Router Ready Dispatch animations when changing routes using our React-Router Link component.