{"_id":"amator","_rev":"174823","name":"amator","description":"Tiny animation library","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"npm:anvaka","email":""}],"time":{"modified":"2022-10-18T09:05:56.000Z","created":"2016-04-09T20:39:10.900Z","1.1.0":"2017-09-27T05:11:45.974Z","1.0.1":"2016-04-09T20:53:32.762Z","1.0.0":"2016-04-09T20:39:10.900Z"},"users":{},"author":{"name":"Andrei Kashcha"},"repository":{"type":"git","url":"git+https://github.com/anvaka/amator.git"},"versions":{"1.1.0":{"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":"npm:anvaka","email":""}],"dist":{"shasum":"08c6b60bc93aec2b61bbfc0c4d677d30323cc0f1","size":23681,"noattachment":false,"key":"/amator/-/amator-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/amator/download/amator-1.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amator-1.1.0.tgz_1506489105850_0.43392522586509585"},"directories":{},"publish_time":1506489105974,"_hasShrinkwrap":false,"_cnpm_publish_time":1506489105974,"_cnpmcore_publish_time":"2021-12-16T10:36:33.538Z"},"1.0.1":{"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":"npm:anvaka","email":""}],"dist":{"shasum":"0fd3663fef5f3334d088cf68a70ba74398aa0e26","size":2565,"noattachment":false,"key":"/amator/-/amator-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/amator/download/amator-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/amator-1.0.1.tgz_1460235211733_0.17110755643807352"},"directories":{},"publish_time":1460235212762,"_hasShrinkwrap":false,"_cnpm_publish_time":1460235212762,"_cnpmcore_publish_time":"2021-12-16T10:36:33.725Z"},"1.0.0":{"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":"npm:anvaka","email":""}],"dist":{"shasum":"53d661e61aec7c2b10bf7df17264ae4c2a039e57","size":2528,"noattachment":false,"key":"/amator/-/amator-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/amator/download/amator-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/amator-1.0.0.tgz_1460234349815_0.7050873760599643"},"directories":{},"publish_time":1460234350900,"_hasShrinkwrap":false,"_cnpm_publish_time":1460234350900,"_cnpmcore_publish_time":"2021-12-16T10:36:33.924Z"}},"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","_attachments":{},"homepage":"https://github.com/anvaka/amator#readme","bugs":{"url":"https://github.com/anvaka/amator/issues"},"license":"MIT"}