earthtoday-react-motion
Version:
A spring that solves your animation problems.
20 lines (14 loc) • 772 B
Markdown
# React-Motion
[](https://travis-ci.org/chenglou/react-motion)
[](https://www.npmjs.com/package/react-motion)
[](http://badge.fury.io/bo/react-motion)
[](https://discordapp.com/invite/0ZcbPKXt5bYzmcI0)
```js
import {Motion, spring} from 'earthtoday-react-motion';
// In your render...
<Motion defaultStyle={{x: 0}} style={{x: spring(10)}}>
{value => <div>{value.x}</div>}
</Motion>
```
### Install
- Npm: `npm install --save earthtoday-react-motion`