{"name":"amator","version":"1.0.1","description":"Tiny animation library","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["animation","small","library"],"author":{"name":"Andrei Kashcha"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/anvaka/amator.git"},"dependencies":{"bezier-easing":"^2.0.3"},"gitHead":"8bda7fc74d86fa05875473782ca56405f5f20abc","bugs":{"url":"https://github.com/anvaka/amator/issues"},"homepage":"https://github.com/anvaka/amator#readme","_id":"amator@1.0.1","_shasum":"0fd3663fef5f3334d088cf68a70ba74398aa0e26","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"anvaka","email":"anvaka@gmail.com"},"maintainers":[{"name":"anvaka","email":"anvaka@gmail.com"}],"dist":{"shasum":"0fd3663fef5f3334d088cf68a70ba74398aa0e26","tarball":"http://registry-npm.ywwl.com/amator/download/amator-1.0.1.tgz","integrity":"sha512-Ijp/QQCWqEIKI3fUR3vT0nQf3gViyE/juZ2hIpG+5Yh1S4UYI1pnfJXl4Vs5D6R1ycEm/bHnCfjFIq52F5FdVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZpbocof6gKUyh6CqbwGe09XJ6WKMXD7RbsA9RU9imegIhAKGVKnzgVXFTVX8aljX0Sf4VNoX4oVpAtTcvICna1C6h"}],"size":2565,"noattachment":false,"key":"/amator/-/amator-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/amator-1.0.1.tgz_1460235211733_0.17110755643807352"},"directories":{},"readme":"# amator\n\nTiny animation library.\n\n# usage\n\n``` js\nvar animate = require('amator')\nvar from = { x: 0 }\nvar to = { x: 42 }\n\n// This will animate from.x from 0 to 42 in 400ms, using cubic bezier easing\n// function (same effect as default CSS `ease` function)\nanimate(from, to)\n```\n\nOverall the signature of the `animate()` function:\n\n```js\nanimate(fromObj, toObj, options)\n```\n\n## options\n\nThis is a hash dictionary with the following keys:\n\n* `duration` - sets animation duration in milliseconds. Default value is 400ms;\n* `easing` - Easing function. Can accept predefined value similar to CSS animations:\n  `ease`, `easeIn`, `easeOut`, `easeInOut`, `linear`; NOTE: You can also have a\n  custom function instead of a string value. The function should take a single\n  argument `t` from range [0..1] and return value from 0 to 1.\n* `step(fromObj)` - a function callback that is called after each animation frame.\n  the only argument to this function is `fromObj` that has current animation values.\n* `done()` - a function callback that is called when animation is finished.\n\n## return value\n\nThe return value of the `animate` is an object, which has just one key:\n\n* `cancel()` - if you want to cancel animation before it completes, you can call\nthis method.\n\n# license\n\nMIT\n","publish_time":1460235212762,"_cnpm_publish_time":1460235212762,"dist-tags":{"latest":"1.1.0"}}