{"name":"css-animation","description":"css-animation","version":"2.0.3","license":"MIT","pika":true,"sideEffects":false,"keywords":["css-animation"],"homepage":"http://github.com/yiminghe/css-animation","bugs":{"url":"http://github.com/yiminghe/css-animation/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/yiminghe/css-animation.git"},"dependencies":{},"devDependencies":{"@pika/plugin-build-node":"0.6.x","@pika/plugin-build-types":"0.6.x","pika-plugin-build-web-babel":"0.6.x","@pika/plugin-standard-pkg":"0.6.x","@pika/types":"0.6.x","@storybook/react":"^5.1.9","@storybook/storybook-deployer":"^2.8.1","babel-loader":"^8.0.6","lint-staged":"^9.2.1","pre-commit":"1.x","prettier":"^1.18.2","react":"16.x","react-dom":"16.x"},"esnext":"dist-src/index.js","module":"dist-web/index.js","main":"dist-node/index.js","_id":"css-animation@2.0.3","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-XAS3QCk3z4PRoGVN/7ijy+rCCLmLwnENA0CuIuOd7+aKdRgOB+/2KHd2pCGKH57JSuwuiykWDNmzDkWh8zDPzw==","shasum":"0ebd76e8b411f9410309cafa6247a3f494063122","tarball":"http://registry-npm.ywwl.com/css-animation/download/css-animation-2.0.3.tgz","fileCount":10,"unpackedSize":86921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUSjcCRA9TVsSAnZWagAAiEoQAIH45J8rvBmMfxyXosyA\n+znsW9UoXcYrT6Wfmw6IMeKAnQCw2zflb+qEArbjQbhXxeJZZ6NLsJVqRJnc\nst3594kkzVsdFE3giSPsNaoI7DWDMUSa2GlvGRvLXnEvotJw+KHRJ258axO5\nXgL0kKZQjwAzp7WmXrUTXqDSCBFm3XddQ9LP2thUa1uj0tRPqTunG/eoLe7Q\n6BxTvKSRGK6KqaTy3WeYHGU1VoPuQgsQB68+EGnvIeBSAJklsdtQNSjQPZQR\nIWD7GVobyyK2MmkNwzEFkbGkgMOeuTnTDskC/64hz5SJWk3qOW5AG+HSEmUY\nA2mfSKyiod0GUOtSr0i09YmHFyH3qWCnIXO4Kb6ZheMJp7gQKFDbvSHXU1IX\nNWMMuYAfEm3se7A9bgX2GLZ1gq9lKUtg11cx0fkGNoE+JIBPt82QWOG/9Ygg\nFuTljC8bdcZ2w4VODGm00U/ZJ+P51wVPoDE4rF4uDUUauEzcOIukiVtRTa6S\nuWq/BJBcD+m+JgWtNITAqPmTdTOqn1SUboYDom50aIqp7sJStn7taniwtVTf\nj9fzt8lrFgbyLgr1SrJ/4gbf6vXuzKLou5KpGU94YYel5+O/1RyWIxe4ZfeA\n8IOxBduMfDGDhiOJoFt7SUITUeZ92viYoJwVDPFbUFeRs+N0EPokY63NvcLj\nWUsw\r\n=xc4M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC92DbFOErmDaejDAAa6TBO76lv+1VRuDS1r+WVR9gEQAiARyd8oLl9AWGtG28g9WofTBsyoSYNgBD1TkiXocsxudA=="}],"size":17812,"noattachment":false,"key":"/css-animation/-/css-animation-2.0.3.tgz"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"_npmUser":{"name":"yiminghe","email":"yiminghe@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-animation_2.0.3_1565599963390_0.42800339621680683"},"_hasShrinkwrap":false,"readme":"# css-animation\n---\n\nmake css animation easier\n\n[![NPM version][npm-image]][npm-url]\n\n[npm-image]: http://img.shields.io/npm/v/css-animation.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/css-animation\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:6006/\n\nonline example: http://yiminghe.github.io/css-animation/\n\n\n## Feature\n\n* support ie8,ie8+,chrome,firefox,safari\n\n## install\n\n[![css-animation](https://nodei.co/npm/css-animation.png)](https://npmjs.org/package/css-animation)\n\n## Usage\n\n```js\nimport anim from 'css-animation';\nanim(el,animationName,function(){});\n```\n\n## API\n\n### void anim(el:DOMElement, animationName:String, callback:Function)\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>el</td>\n          <td>DOMElement</td>\n          <td></td>\n          <td>dom element to be animated</td>\n        </tr>\n        <tr>\n          <td>animationName</td>\n          <td>String|Object</td>\n          <td></td>\n          <td>will add animationName (if string) or animationName.name (if object) as class to el, then setTimeout 0 to add ${animationName}-active (if string) or animationName.active (if object) to el</td>\n        </tr>\n        <tr>\n          <td>callback</td>\n          <td>Function</td>\n          <td></td>\n          <td>triggered when anim caused by animationName is done</td>\n        </tr>\n    </tbody>\n</table>\n\n## License\n\ncss-animation is released under the MIT license.\n","publish_time":1565599963575,"_cnpm_publish_time":1565599963575,"dist-tags":{"latest":"2.0.4"}}