{"name":"rc-animate","version":"3.0.0-rc.0","description":"css-transition ui component for react","keywords":["react","react-component","react-animate","animate"],"files":["es","lib"],"homepage":"https://github.com/react-component/animate","author":"","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/animate.git"},"bugs":{"url":"http://github.com/react-component/animate/issues"},"licenses":"MIT","main":"./lib/Animate","module":"./es/Animate","config":{"port":8200},"scripts":{"build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub --babel-runtime","lint":"rc-tools run lint","karma":"rc-test run karma","saucelabs":"rc-test run saucelabs","test":"rc-test run test","chrome-test":"rc-test run chrome-test","coverage":"rc-test run coverage","prepublish":"rc-tools run guard"},"devDependencies":{"core-js":"^2.5.1","expect.js":"0.3.x","jquery":"^3.3.1","pre-commit":"1.x","rc-test":"6.x","rc-tools":"8.x","react":"^16.3.0","react-dom":"^16.0.0","velocity-animate":"~1.2.2"},"pre-commit":["lint"],"dependencies":{"babel-runtime":"6.x","classnames":"^2.2.5","component-classes":"^1.2.6","fbjs":"^0.8.16","prop-types":"15.x","raf":"^3.4.0","rc-util":"^4.5.0","react-lifecycles-compat":"^3.0.4"},"readme":"# rc-animate\n---\n\nanimate react element easily\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![gemnasium deps][gemnasium-image]][gemnasium-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-animate.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-animate\n[travis-image]: https://img.shields.io/travis/react-component/animate.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/animate\n[coveralls-image]: https://img.shields.io/coveralls/react-component/animate.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/animate?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/animate.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/animate\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/rc-animate.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-animate\n\n## Feature\n\n* support ie8,ie8+,chrome,firefox,safari\n\n## install\n\n[![rc-animate](https://nodei.co/npm/rc-animate.png)](https://npmjs.org/package/rc-animate)\n\n## Usage\n\n```jsx\nimport Animate from 'rc-animate';\n\nReactDOM.render(\n  <Animate animation={{ ... }}>\n    <p key=\"1\">1</p>\n    <p key=\"2\">2</p>\n  </Animate>\n, mountNode);\n```\n\n## API\n\n### props\n\n<table class=\"table table-bordered table-striped\">\n    <thead>\n    <tr>\n        <th style=\"width: 100px;\">name</th>\n        <th style=\"width: 50px;\">type</th>\n        <th style=\"width: 50px;\">default</th>\n        <th>description</th>\n    </tr>\n    </thead>\n    <tbody>\n        <tr>\n          <td>component</td>\n          <td>React.Element/String</td>\n          <td>'span'</td>\n          <td>wrap dom node or component for children. set to '' if you do not wrap for only one child</td>\n        </tr>\n        <tr>\n          <td>componentProps</td>\n          <td>Object</td>\n          <td>{}</td>\n          <td>extra props that will be passed to component</td>\n        </tr>\n        <tr>\n          <td>showProp</td>\n          <td>String</td>\n          <td></td>\n          <td>using prop for show and hide. [demo](http://react-component.github.io/animate/examples/hide-todo.html) </td>\n        </tr>\n        <tr>\n          <td>exclusive</td>\n          <td>Boolean</td>\n          <td></td>\n          <td>whether allow only one set of animations(enter and leave) at the same time. </td>\n        </tr>\n        <tr>\n          <td>transitionName</td>\n          <td>String|Object</td>\n          <td></td>\n          <td>specify corresponding css, see ReactCSSTransitionGroup</td>\n        </tr>\n       <tr>\n         <td>transitionAppear</td>\n         <td>Boolean</td>\n         <td>false</td>\n         <td>whether support transition appear anim</td>\n       </tr>\n        <tr>\n          <td>transitionEnter</td>\n          <td>Boolean</td>\n          <td>true</td>\n          <td>whether support transition enter anim</td>\n        </tr>\n       <tr>\n         <td>transitionLeave</td>\n         <td>Boolean</td>\n         <td>true</td>\n         <td>whether support transition leave anim</td>\n       </tr>\n       <tr>\n         <td>onEnd</td>\n         <td>function(key:String, exists:Boolean)</td>\n         <td>true</td>\n         <td>animation end callback</td>\n       </tr>\n        <tr>\n          <td>animation</td>\n          <td>Object</td>\n          <td>{}</td>\n          <td>\n            to animate with js. see animation format below.\n          </td>\n        </tr>\n    </tbody>\n</table>\n\n### animation format\n\nwith appear, enter and leave as keys. for example:\n\n```js\n  {\n    appear: function(node, done){\n      node.style.display='none';\n      $(node).slideUp(done);\n      return {\n        stop:function(){\n          // jq will call done on finish\n          $(node).stop(true);\n        }\n      };\n    },\n    enter: function(){\n      this.appear.apply(this,arguments);\n    },\n    leave: function(node, done){\n      node.style.display='';\n      $(node).slideDown(done);\n      return {\n        stop:function(){\n          // jq will call done on finish\n          $(node).stop(true);\n        }\n      };              \n    }\n  }\n```\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8200/examples/index.md\n\nonline example: http://react-component.github.io/animate/examples/\n\n## Test Case\n\n```\nnpm test\nnpm run chrome-test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\n## License\n\nrc-animate is released under the MIT license.\n","readmeFilename":"README.md","gitHead":"6c11c4ad3e824e2f11035773d97e676f61373ca0","_id":"rc-animate@3.0.0-rc.0","_npmVersion":"6.1.0","_nodeVersion":"8.9.4","_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"dist":{"integrity":"sha512-Y7qbApGvLKqMjwL9cGnxeZ+pqodDX+MwZlYxaQlsuSy17M3J8rNTofZxO8FUEfqHaBIK0UNbF7y78QOdORTdEQ==","shasum":"59170d91be11acd5c5f8f77343a2731ca4cf8b7d","tarball":"http://registry-npm.ywwl.com/rc-animate/download/rc-animate-3.0.0-rc.0.tgz","fileCount":10,"unpackedSize":62149,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHiqWCRA9TVsSAnZWagAAJ3oP/iM3tfz9GT6sgTmBw8+C\noyBf+JTioZtIxN3bi49/2wwL10756lbARN0vR14QYCbPR6Wv884gRsRVxA5r\nfPlfID4yOB2WlkZ60yqBTD5PAjJ40c1/eqAoNx/dHDjd1JhNBonp63xXeoPo\nygCC/pEItcKnAD1USz/NnQI1L3oR3IUDJC23yj3EXxKg5T/760je16+qYVwh\n+l6TasMe+RFjf1KTR+hURzbsiwvaVFuqzdPQ7vhS73sQnTABVyVXHTZAsjTM\nyRLAS9UdCtsAq+nrp2huJLuDUpwrSKY0tAnKX5T5iGGmvBalUmnP+r7hqXvJ\nnVZsqNqdMkKOT0XmPjdHiuDZSvlMhZzzH4dBd4U+YEu7kHllVqJl4v+kdQP4\nigovL7x9Q7JCAVJKjAnfU+KaRrIVJ97L83NVG1zrZD2rDBaFuKZLh7TzZvXi\nGdds4OFkV4/3J+596cMdH275IJWUlQnFaB3Tl4GpgJdZ8NybbIWkAWfff/2z\nyUnDI0ZShQFfQLAPhYqPQuAdcSMTXXiyAhi4d6dV6QZ76MAzfplVmSIZpMqM\n2k6yf0Cbi4w6l9TUBjK0CtY1isZMmlDdQhiQQ8eUG+ryVzXC5AQ6BWKHhyVX\nWmtepusOkDhOCZsXCqVQ7rlok5JuXyIgP08eIJ93VfJ2vMxP4+Lk/GYGS79r\nUuri\r\n=pFeX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBYY9tKrYTBWnEd0+OhMlDWddgMnbyFfGKcg6BwxNGtUAiAUAMHFeIHJ7yQnofeYe6K9pYp692nBtCrlHEVTOu4K/A=="}],"size":10337,"noattachment":false,"key":"/rc-animate/-/rc-animate-3.0.0-rc.0.tgz"},"maintainers":[{"name":"xujihui1985","email":"xujihui1985@outlook.com"},{"name":"yesmeck","email":"yesmeck@gmail.com"},{"name":"yiminghe","email":"yiminghe@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rc-animate_3.0.0-rc.0_1528703637596_0.49230359875258967"},"_hasShrinkwrap":false,"publish_time":1528703637674,"_cnpm_publish_time":1528703637674,"dist-tags":{"beta":"2.6.0-beta.1","latest":"3.1.1"}}