{"name":"rc-animate","version":"3.0.0-rc.6","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/index","module":"./es/index","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\n## CSSMotion\n\n### props\n\n| Property | Type | Default | Description|\n| -------- | ---- | ------- | ---------- |\n| visible | boolean | true | Display child content or not |\n| children | function | | Render props of children content. Example [see below](#sample usage) |\n| motionName | string \\| [motionNameObjProps](#motionNameObjProps) | | Set the className when motion start |\n| motionAppear | boolean | true | Support motion on appear |\n| motionEnter | boolean | true | Support motion on enter |\n| motionLeave | boolean | true | Support motion on leave |\n| motionLeaveImmediately | boolean | | Trigger motionLeave immediately if visible to be false (even if it's first time append to the view) |\n| onAppearStart | function | | Trigger when appear start |\n| onAppearActive | function | | Trigger when appear active |\n| onAppearEnd | function | | Trigger when appear end |\n| onEnterStart | function | | Trigger when enter start |\n| onEnterActive | function | | Trigger when enter active |\n| onEnterEnd | function | | Trigger when enter end |\n| onLeaveStart | function | | Trigger when leave start |\n| onLeaveActive | function | | Trigger when leave active |\n| onLeaveEnd | function | | Trigger when leave end |\n\n#### motionNameObjProps\n| Property | Type |\n| -------- | ---- |\n| appear | string |\n| appearActive | string |\n| enter | string |\n| enterActive | string |\n| leave | string |\n| leaveActive | string |\n\n### sample usage\n\n```jsx\n// Return customize style\nconst onAppearStart = (ele) => ({ height: 0 });\n\n<CSSMotion\n  visible={show}\n  transitionName=\"transition\"\n  onAppearStart={onAppearStart}\n>\n  {({ style, className }) => (\n    <div className={className} style={style} />\n  )}\n</CSSMotion>\n```\n\n## Animate (Deprecated)\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":"9d6a99695ea830674cd9492da6823d0c8ba66e62","_id":"rc-animate@3.0.0-rc.6","_npmVersion":"6.2.0","_nodeVersion":"8.11.3","_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"dist":{"integrity":"sha512-oBLPpiT6Q4t6YvD/pkLcmofBP1p01TX0Otse8Q4+Mxt8J+VSDflLZGIgf62EwkvRwsQUkLPjZVFBsldnPKLzjg==","shasum":"04288eefa118e0cae214536c8a903ffaac1bc3fb","tarball":"http://registry-npm.ywwl.com/rc-animate/download/rc-animate-3.0.0-rc.6.tgz","fileCount":14,"unpackedSize":87101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbf8RECRA9TVsSAnZWagAAxa0P/0Lfs0q/XIPXC2pj9ZUf\nnaNYHevguFi7/LfrUvj5XrX0RBOMK5d1rkHme+d6SM1Yy9V8JqRFK7WYYIC8\nDmiKKdxRv8t/urBP6KNvaMO3ckrUXczi8/3rEYy4TECihmOWXPXpr0h/dKeN\nRREwtP+yZEnRE9iZr3j6vPHHjJx91GthswwXbiH9tegJfnwNJclf2dFDIzeY\nMmhKBSghRXuW16kWvuvvTqwc3fbmCtoYptQyshxm0g86q4DjZ7z2XpE6XdrN\nbkBGjuej0DmlAHCRvMA51d5Zc0j3jvpBDVzpnDX+0B2d+Ts567qPGWn5b9BZ\nGPg1ww75kNjkVoMAM/idsh3qYfUL+swBpmSHYuGlIWHPtBd3FtEBYk/fx8da\nJy8ZuEw73sZSV3sWYUDyk45fI+Q62gvawCV01jDKR+9AirwMu7eZvlmjY8/1\nGxgjYTPwAswUQsAJx98sm0g614TPI7MAvklIZ5HzT+iYaG2xqLNCXUqoJ5HT\njYwZVpnHWPWmivWDm7sEjVSes1U/L44JvpBIU8V62HA1Tr6D3LvQwRYi/oaO\nhO2u/u+xqB8/j+FSuW0Cnjgau5nmt5Pd7u2OitVAjkk7SxdDicFgsNwyCRhY\nL6Jha/4C0kMv1dgjVcpqNCMrwmfuDH/htxwXA5zfs1S+hnVhsd1B4YCHERcV\nvlzq\r\n=1sag\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUl7mEVZzsizuFM3AaM1hS0t4hcu72XvWLeVYXQ/p/vAiBao1cfHmO+jaot0L1HPvtyYFpfVfcRVado4cjXVVy1YA=="}],"size":18474,"noattachment":false,"key":"/rc-animate/-/rc-animate-3.0.0-rc.6.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.6_1535099972055_0.39334003252502536"},"_hasShrinkwrap":false,"publish_time":1535099972158,"_cnpm_publish_time":1535099972158,"dist-tags":{"beta":"2.6.0-beta.1","latest":"3.1.1"}}