0.1.1 • Published 8 years ago

@mizchi/react-animation v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

react-animation

Inspired by react-motion

$ npm install @mizchi/react-animation
import * as React from "react";
import Animation from "@mizchi/react-animation";

class MovingCircle extends React.Component<{}, {}> {
  render() {
    return (
      <Animation duration={1000} loop={true}>
        {progress =>
          <circle
            cx={progress * 100} cy={30}
            r={25}
            stroke="grey" strokeWidth={1}
            fill="wheat"
          />
        }
      </Animation>
    );
  }
}

TODO

  • documentation
  • test