react-motion-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

React-Motion

import { Motion, spring } from 'react-motion-ts'

// In your render...
  <Motion defaultStyle={{ x: 0 }} style={{ x: spring(10) }}>
    {value => <div>{value.x}</div>}
  </Motion>

Animate a counter from 0 to 10. For more advanced usage, see below.

Install

  • Npm: npm install --save react-motion-ts

API

Exports:

  • spring
  • Motion
  • StaggeredMotion
  • TransitionMotion
  • presets

Package Sidebar

Install

npm i react-motion-ts

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

30 kB

Total Files

8

Last publish

Collaborators

  • blithe07