$ gnpm install rc-css-transition-group
standalone and enhanced CSSTransitionGroup for React.addons.CSSTransitionGroup
var CSSTransitionGroup = require('rc-css-transition-group');
var React = require('react');
React.render(<CSSTransitionGroup><p>1</p><p>2</p></CSSTransitionGroup>, container);
name | type | default | description |
---|---|---|---|
component | React.Element/String | 'span' | wrap dom node or component for children |
showProp | String | using prop for show and hide. [demo](http://react-component.github.io/css-transition-group/build/examples/hide-todo.html) | |
exclusive | Boolean | whether allow only one set of animations(enter and leave) at the same time. | |
transitionName | String | transitionName, need to specify corresponding css | |
transitionEnter | Boolean | true | whether support transition enter anim |
transitionLeave | Boolean | true | whether support transition leave anim |
http://facebook.github.io/react/docs/animation.html
npm install
npm start
http://localhost:8010/examples/index.md
online example: http://react-component.github.io/css-transition-group/build/examples/
http://localhost:8010/tests/runner.html?coverage
rc-css-transition-group is released under the MIT license.
Copyright 2013 - present © cnpmjs.org | Home |