UNPKG

react-zeanium-ui-ui

Version:

Zeanium UI Framework for React.js

26 lines (23 loc) 441 B
var React = require('react'); module.exports = React.createClass({ displayName:'AnimateView', getInitialState:function(){ return { animate: this.props.animate || '' } }, componentDidMount:function(){ }, animate: function (animate){ this.setState({ animate: animate }); }, render:function(){ return ( <div className={'c-animateview animate ' + this.state.animate}> {this.props.childred} </div> ); } });