UNPKG

earthtoday-react-motion

Version:

A spring that solves your animation problems.

20 lines (14 loc) 772 B
# React-Motion [![Build Status](https://travis-ci.org/chenglou/react-motion.svg?branch=master)](https://travis-ci.org/chenglou/react-motion) [![npm version](https://badge.fury.io/js/react-motion.svg)](https://www.npmjs.com/package/react-motion) [![Bower version](https://badge.fury.io/bo/react-motion.svg)](http://badge.fury.io/bo/react-motion) [![react-motion channel on discord](https://img.shields.io/badge/discord-react--motion%40reactiflux-738bd7.svg?style=flat)](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`