{"bugs":{"url":"https://github.com/react-component/tween-one/issues"},"dist":{"shasum":"a2309b2a7aedcb47a5822c7c91bb93d55a4e0787","tarball":"https://registry.npmjs.org/rc-tween-one/-/rc-tween-one-2.2.10-beta.0.tgz","fileCount":45,"integrity":"sha512-Vu86aNGaJoSbo/6AISS8oK45r+OXSbxFk7jPzypENQOWHaYiWaAdBTV1u29K/9AkmaCk6Gj9xizt/fYqCS3Ixg==","signatures":[{"sig":"MEQCIGFBoEZX44AufLpqM0RjevEsBEQBdPFmx1b/Bf5AXJ8gAiAp0icm5HFf3by60ikpJE2iiFaswEuxW70JQ/IG29MWyQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":819294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrhbVCRA9TVsSAnZWagAAjs8P/0lQ61toT/bBH28YxUgr\nxa3X2/0lI+LTI90xlW6tksY+ULMEubezBDImuabPckObwkv/sOvTt4XK5KaC\ni+gUGBLQosOihFe8r+gQdXGBJgIwxwTIX7h6CUi5JLetWNxUfLRtupZE+ndZ\njhzghw1RCFlNZxQ6kCToy4rq63mWYACwcAqdxtr9hPyC8FPdpOsuKkvk5eh0\nVTp53TnfZAc04L6YU5UEideW+ZMw0AzspoBehXZB5wDBdAs0w1Uf2YcIXXCC\nye05AN2CPCEMlXrjd6AktCFfJ4QLtAUt7o42lu0c+aXgm7WSom1IdlfZSk0I\ncW02KuQDoNSz+rWFpeBl59yMHjMy00dpaFkxKq0D8HycaqYQej0JakUNF6Rr\nQG/1muuvtw1ihQJuFkY1WVKvtDoG24solOO+bijt0K5ep+1LTUg0aP2DVPzb\nnjekmIYLAhisf7NLCdthumFU9bB6ng0DemAl0TJNIAaWzjcJCVQPWt+1Z1OX\nNCPfvQ0n00NkXQ/lwmxPy28JnZ4/t8Z97IvlMzNXDihj432qmaRwqSGjyZB2\nGCvOpJwGHc6U4zRib5yNrplZvrM9EKe8mkklPCZeDsotGwoldSAoSseQMO2j\n+Kn+C92LG8dfrvUHfHWG1zdpzvMTrAo5foDY5ikO28IsojuWOGilUPl4QEF5\nBcdG\r\n=7z4E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index","name":"rc-tween-one","types":"typings/index.d.ts","author":"","config":{"port":8100,"entry":{"rc-tween-one":["./assets/index.less","./src/index.js"]}},"module":"./es/index","readme":"# rc-tween-one\n---\n\nReact TweenOne Component\n\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-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-tween-one.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-tween-one\n[travis-image]: https://img.shields.io/travis/react-component/tween-one.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/tween-one\n[coveralls-image]: https://img.shields.io/coveralls/react-component/tween-one.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/tween-one?branch=master\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-tween-one.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-tween-one\n\n\n## Browser Support\n\n|![IE](https://github.com/alrra/browser-logos/blob/master/src/edge/edge_48x48.png?raw=true) | ![Chrome](https://github.com/alrra/browser-logos/blob/master/src/chrome/chrome_48x48.png?raw=true) | ![Firefox](https://github.com/alrra/browser-logos/blob/master/src/firefox/firefox_48x48.png?raw=true) | ![Opera](https://github.com/alrra/browser-logos/blob/master/src/opera/opera_48x48.png?raw=true) | ![Safari](https://github.com/alrra/browser-logos/blob/master/src/safari/safari_48x48.png?raw=true)|\n| --- | --- | --- | --- | --- |\n| IE 10+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8100/examples/\n\nhttp://react-component.github.io/tween-one/\n\n\n## install\n\n\n[![rc-tween-one](https://nodei.co/npm/rc-tween-one.png)](https://npmjs.org/package/rc-tween-one)\n\n\n## Usage\n\n```jsx\nvar TweenOne = require('rc-tween-one');\nvar React = require('react');\nReact.render(<TweenOne animation={{x:100}}>\n  demo\n</TweenOne>, container);\n```\n\n### Plugin\n\n```jsx\nvar TweenOne = require('rc-tween-one');\nvar React = require('react');\nvar SvgDrawPlugin = require('rc-tween-one/lib/plugin/SvgDrawPlugin');\nTweenOne.plugins.push(SvgDrawPlugin);\nReact.render(<svg width=\"600\" height=\"600\">\n  <TweenOne \n    animation={{ SVGDraw:'50%'}}\n    d=\"M0,0L100,0\"\n    style={{ fill: 'none', strokeWidth: 20, stroke: '#00000' }}\n    component=\"path\"\n  />\n</svg>, container);\n```\n\n### TweenOneGroup\n```jsx\nvar TweenOne = require('rc-tween-one');\nvar React = require('react');\nvar TweenOneGroup = TweenOne.TweenOneGroup;\nReact.render(<TweenOneGroup>\n  <div key=\"0\">demo</div>\n  <div key=\"1\">demo</div>\n</TweenOneGroup>, container);\n```\n\n## API\n\n<a href='https://motion.ant.design/api/tween-one' target='_blank'>中文文档</a>\n\n### props\n\n| name      | type           | default | description    |\n|------------|----------------|---------|----------------|\n| animation  | object / array | null    | animate configure parameters |\n| paused      | boolean        | false   | animate pause |\n| reverse    | boolean        | false   | animate revers |\n| reverseDelay | number       | 0       | animate revers start delay |\n| repeat     |  number        | 0       | `animation` all data repeat, To repeat indefinitely, use  -1 |\n| yoyo       | boolean        | false   | `animation` all data alternating backward and forward on each repeat. |\n| onChange   | func           | null    | when the animation change called, callback({ moment, target, index, mode, timelineMode }) |\n| moment     | number         | null    | set the current frame    |\n| attr       | string         | `style` | `style` or `attr`, `attr` is tag attribute. when morph SVG must be `attr`.  |\n| resetStyle | boolean    | false   | update animation data, reset init style |\n| component  | string / React.Element  | `div`   | component tag  |\n| componentProps | object     | null   | component is React.Element, component tag props, not add `style` |\n\n\n### animation = { }\n\n> Basic animation param. please view [animation terms](https://motion.ant.design/language/animate-term)\n\n| name      | type           | default | description    |\n|------------|----------------|---------|----------------|\n| type       | string         | `to`    | play type: `to` `from`|\n| duration   |  number        | 450     | animate duration     |\n| delay      | number         | 0       | animate delay  |\n| repeat     | number         | 0       | animate repeat, To repeat indefinitely, use  -1 |\n| repeatDelay| number         | 0       | repeat start delay |\n| appearTo   | number         | null    | Add to the specified time |\n| yoyo       | boolean        | false   | `true`: alternating backward and forward on each repeat. |\n| ease       | string / func         | `easeInOutQuad` | animate ease. [refer](http://easings.net/en)  |\n| bezier     | object         | null    | bezier curve animate |\n| onStart    | func           | null    | A function that should be called when the tween begins, callback(e), e: { index, target }  |\n| onUpdate   | func           | null    | A function that should be called every time the animate updates, callback(e), e: { index, target,  ratio }   |\n| onComplete | func           | null    | A function that should be called when the animate has completed, callback(e), e: { index, target }  |\n| onRepeat   | func           | null    | A function that should be called each time the animate repeats, callback(e), e: { index, target }  |\n\n> Cannot be used at the same time `reverse` and `repeat: -1`.\n\n### animation =[ ] is timeline\n\n### ease: function\n\npath easing;\n\n| name      | type           | default | description    |\n|------------|----------------|---------|----------------|\n| path      | string         | null     | svg path       |\n| param     | object         | `{ rect: 100, lengthPixel: 200 }` | rect is block size, default: 100 * 100; lengthPixel default: curve is divided into 200 sections |\n\n```js\nconst path = 'M0,100 C30,60 0,20 50,50 C70,70 60,0 100,0';\nconst ease = Tween.easing.path(path, param = { rect: 100, lengthPixel: 200 });\nReact.render(<TweenOne animation={{ x: 100, ease }}>\n  demo\n</TweenOne>, container);\n```\n\n### BezierPlugin\n\nbezier = { }\n\n| name      | type           | default | description    |\n|------------|----------------|---------|----------------|\n| type       | string         | `soft`  | `thru`, `soft`, `quadratic`, `cubic` |\n| autoRotate | boolean        | false   | to automatically rotate the target according to its position on the Bezier path  |\n| vars       | array          | null    | bezier point data，as: `{x:100,y:100}` |\n\n> bezier API refer to [gsap BezierPlugin](http://greensock.com/docs/#/HTML5/GSAP/Plugins/BezierPlugin/)\n\n### SvgDrawPlugin\n\nSVGDraw = string or number;\n\n{ SVGDraw: 30 } or { SVGDraw: 'start end' } start and end values can be `%`;\n\n### SvgMorphPlugin\n\nsvg polygon or path values: polygon is points, path is d; [demo](http://react-component.github.io/tween-one/examples/svg.html)\n\n### PathPlugin\n\npath = string or object;\n\nstring: `animation={{ path: 'M0,100 C30,60 0,20 50,50 C70,70 60,0 100,0' }}`,  default:  x, y, rotate;\n\nobject: `animation={{ path: { x: path, y: path, rotate: path } }}`, can be controlled from their own needs.\n\n### ChildrenPlugin\n\n#### Children = { value:, floatLength, formatMoney };\n\n| name | type | default | description |\n|---|---|---|---|\n| value | number | null | children number to value. |\n| floatLength | number | null | float precision length |\n| formatMoney | boolean or { thousand, decimal } | false | format number to money. |\n\n#### formatMoney = { thousand, decimal }\n\n| name | type | default | description |\n|---|---|---|---|\n| thousand | string | `,` | no explanation. |\n| decimal  | string | `.` | no explanation. |\n\n## TweenOneGroup\n\n| name      | type           | default | description    |\n|------------|----------------|---------|----------------|\n| appear    |  boolean       |  true   |  whether support appear anim |\n| enter     | object / array / func | `{ x: 30, opacity: 0, type: 'from' }` | enter anim twee-one data. when array is tween-one timeline, func refer to queue-anim  |\n| leave     | object / array / func | `{ x: 30, opacity: 0 }` | leave anim twee-one data. when array is tween-one timeline, func refer to queue-anim  |\n| onEnd     |  func          | -    | one animation end callback |\n| animatingClassName | array | `['tween-one-entering', 'tween-one-leaving']` | className to every element of animating |\n| exclusive   |  boolean   | false  | Whether to allow a new animate to execute immediately when switching. `enter => leave`: execute immediately leave |\n| component | \tReact.Element/String | div  |  component tag  | \n| componentProps | object  |  -  | component tag props |\n","gitHead":"2ad808c97aeaf831e12539710b0dc3a7c2a16cac","scripts":{"pub":"rc-tools run pub --babel-runtime","dist":"rc-tools run dist","lint":"rc-tools run lint --fix","test":"rc-test run test","build":"rc-tools run build","karma":"rc-test run karma","start":"rc-tools run server","compile":"rc-tools run compile --babel-runtime","coverage":"rc-test run coverage","gh-pages":"rc-tools run gh-pages","saucelabs":"rc-test run saucelabs","chrome-test":"rc-test run chrome-test"},"_npmUser":{"name":"jljsj33","email":"155259966@qq.com"},"homepage":"https://github.com/react-component/tween-one","keywords":["react","react-component","component","react-tween-one","tween","react-tween","tween-one","animation","animate","rc-animation","react-animation","rc-animate","react-animate","motion","rc-motion","ant-motion"],"licenses":"MIT","pre-commit":["lint"],"repository":{"url":"git+https://github.com/react-component/tween-one.git","type":"git"},"_npmVersion":"6.2.0","description":"tween-one anim component for react","directories":{},"maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"jljsj33","email":"155259966@qq.com"}],"_nodeVersion":"8.11.3","dependencies":{"raf":"~3.4.0","deep-eql":"~3.0.1","prop-types":"^15.6.1","style-utils":"~0.1.13","babel-runtime":"6.x","tween-functions":"~1.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"react":"^16.4.0","core-js":"^2.5.7","rc-test":"6.x","rc-tools":"8.x","expect.js":"0.3.x","react-dom":"^16.4.0","pre-commit":"1.x","typescript":"3.x","@types/react":"^16.0.0","rc-queue-anim":"^1.6.1","precommit-hook":"1.x","rc-scroll-anim":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/rc-tween-one_2.2.10-beta.0_1538135764641_0.5098913412980381","host":"s3://npm-registry-packages"},"_id":"rc-tween-one@2.2.10-beta.0","version":"2.2.10-beta.0"}