{"name":"amator","version":"1.0.0","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":"3e73287834781a511314ecb8279afa913f7e8159","bugs":{"url":"https://github.com/anvaka/amator/issues"},"homepage":"https://github.com/anvaka/amator#readme","_id":"amator@1.0.0","_shasum":"53d661e61aec7c2b10bf7df17264ae4c2a039e57","_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":"53d661e61aec7c2b10bf7df17264ae4c2a039e57","tarball":"http://registry-npm.ywwl.com/amator/download/amator-1.0.0.tgz","integrity":"sha512-b5X91MclZtXscB4jnkKcvaJfk1zpOTx3dWaP6MD2tHJuqBSPyE3kTKQDvgfixCsgD0wOgrcpTOhBZcU1AH9kaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu1U5s7hJ3wFPOQvT7+YK3BkzFAOeJM2Qlt+btsBVx0QIhAM9MnNEgMbTJZXE4Qafs+XYKti5tvdFZNhnivm03TNNM"}],"size":2528,"noattachment":false,"key":"/amator/-/amator-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/amator-1.0.0.tgz_1460234349815_0.7050873760599643"},"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":1460234350900,"_cnpm_publish_time":1460234350900,"dist-tags":{"latest":"1.1.0"}}