React Motion Animation Library packaged for Meteor
React Motion is an awesome spring animation library for React developed by Cheng Lou. More information at : https://github.com/chenglou/react-motion
meteor add azfx:react-motion
The library is available as ReactMotion
for use in Meteor Projects.
ReactMotion
exports Spring
, TransitionSpring
, presets
and utils
.
const {Spring} = ReactMotion
let Example = React.createClass({
render() {
return <div>
<Spring defaultValue={{val: 0}} endValue={{val: 100}}>
{
interpolated =>
<div className="someclass" style = {{
transform: `translate3d(${interpolated.val}px, 0, 0)`,
}} >
</div>
}
</Spring>
</div>;
}
})
Please refer documentation for more information.
A sample meteor project with animation examples is on the way..
Meteor 1.2