{"name":"amator","version":"1.1.0","description":"Tiny animation library","main":"index.js","scripts":{"test":"tap test/*.js","build":"browserify -s amator ./index.js > dist/amator.js && uglifyjs dist/amator.js > dist/amator.min.js"},"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"},"devDependencies":{"tap":"^5.7.1"},"gitHead":"247f63cc23798e2f44e27321cd5ddd1498f5e816","bugs":{"url":"https://github.com/anvaka/amator/issues"},"homepage":"https://github.com/anvaka/amator#readme","_id":"amator@1.1.0","_shasum":"08c6b60bc93aec2b61bbfc0c4d677d30323cc0f1","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.2.1","_npmUser":{"name":"anvaka","email":"anvaka@gmail.com"},"maintainers":[{"name":"anvaka","email":"anvaka@gmail.com"}],"dist":{"shasum":"08c6b60bc93aec2b61bbfc0c4d677d30323cc0f1","tarball":"http://registry-npm.ywwl.com/amator/download/amator-1.1.0.tgz","integrity":"sha512-V5+aH8pe+Z3u/UG3L3pG3BaFQGXAyXHVQDroRwjPHdh08bcUEchAVsU1MCuJSCaU5o60wTK6KaE6te5memzgYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUEeAgJdM7DMxc8ZF0tjaec0EELUMgBDozPIq11HWT6AiEAwHSl/UByeawe352BLWSq6xctPiIn+VlC1pFlbxzdW8s="}],"size":23681,"noattachment":false,"key":"/amator/-/amator-1.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amator-1.1.0.tgz_1506489105850_0.43392522586509585"},"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":1506489105974,"_cnpm_publish_time":1506489105974,"dist-tags":{"latest":"1.1.0"}}