{"name":"rc-animate","version":"2.6.0-beta.1","description":"css-transition ui component for react","keywords":["react","react-component","react-animate","animate"],"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":8201},"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.0.0","react-dom":"^16.0.0","velocity-animate":"~1.2.2"},"pre-commit":["lint"],"dependencies":{"babel-runtime":"6.x","classnames":"^2.2.6","css-animation":"^1.3.2","prop-types":"15.x","raf":"^3.4.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":"2fda6298b7bb7859ad6741ddf65dc7c71fb807d8","_id":"rc-animate@2.6.0-beta.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.3","_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"dist":{"integrity":"sha512-5skogSjWt+XgkzPjliFXLQ0YnDZd/L2IffxnAMFGvOfOIuFjAdI2xau7aFtN7n+VKvRNatkqzJWwWl7igpTk9g==","shasum":"9c2566e4c9f77608a49681fc68bbbc0a6fae9ebf","tarball":"http://registry-npm.ywwl.com/rc-animate/download/rc-animate-2.6.0-beta.1.tgz","fileCount":16,"unpackedSize":72207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboJtZCRA9TVsSAnZWagAAS2UP/02ZlV3XgRM4f8XAhmdf\nm+dehVvxRrhpTPilF8bPQpNilNVJ0SU1Jkh3JehV6HaT7PV9FAypgq4ZQF28\nzpQuaYijhPlw2pD3q8ylgIwEn9xt7SaZiGhP00SFZ3z6x8qoETia/G9sDEEe\nozaQLs3vzMLupaaLIQJqGBYb+gDpC1a+3K8eRi128umANfgspENa0KO60MPa\n3AEFGSinv1IEeyIU2if4OW3Wd9PddM2xBkhhGaxgCwh2BHfzt4EDLfHEI82z\nag+IXrSvtP7KkSSOYrgRANjP2pj6LIbRK+yg8dz9REXZZRoHRhOxQdnwaeJy\nsoyPUvqkvHvzvktTqeUKroFM70UC8i7uGib6eeJdtTaXKDEVRheM4cfe80o4\nLdcYm0rvwO325DRQsELR5CX2mqOL/eNw13u/RGkrpnnfJKHCGn7aFin9v0yz\naJGB1zoVekbsFwXlB7vCVyGHodCLQDF67Yr1D/3BfmLw2urnjXCtPJo5ZZGg\np0Jjj9DuOFv85/xA5xuNBOQeqkmsIU0qYMLHznfUWkDDwSFkRjW9WK/hVJzp\nfsrr60deIqU6BpAs7ez0OFa9HXZ3deAk4Z4h/zHg1Vtljfeqf+GQ/0vEolAC\nNZKZapU0u4cnj99eWfEgLIcwTc6CavDmc8O3jOkKZ+1FIUZGpG2x//fghq0A\ngly9\r\n=r3f+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEPcPP3DSBIb3V5OxwBVhChuP6YU1k/sHw6LDjVHEN1RAiB+9TVYPwBHDK3yI+pEejiOP0hvTCvTkhwVljKQ9SVaqA=="}],"size":15257,"noattachment":false,"key":"/rc-animate/-/rc-animate-2.6.0-beta.1.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_2.6.0-beta.1_1537252184568_0.692754800685959"},"_hasShrinkwrap":false,"publish_time":1537252184691,"_cnpm_publish_time":1537252184691,"dist-tags":{"beta":"2.6.0-beta.1","latest":"3.1.1"}}