{"_id":"animation-frame","_rev":"23-b686ca77bd0898b4edfb576c32ffc0c8","name":"animation-frame","description":"An even better requestAnimationFrame","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.3":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.1.3","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/raf.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"engines":{},"dependencies":{},"devDependencies":{"uglify-js":"2.4.x"},"scripts":{},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/kof/raf/issues"},"homepage":"https://github.com/kof/raf","_id":"animation-frame@0.1.3","dist":{"shasum":"1740d16907dc1fff4294c650ad079becf0c4770a","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.1.3.tgz","integrity":"sha512-Pga/Y1Tv2lzfqJegaLIpnMmWr1Umenm/gOTODb0bKwR8R2aHJnZy/tjBCv5l/5hPspZaETvEEYhZjZ18nCVSJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDH3yLDN0ACLoKFw06wy1jMFyaVKjEiZVzRx9dDHoV4aAiEA8tPZ2Wx3/c63L9kKyEIAXunoBEUJZxByEsokWVUQvA8="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"directories":{}},"0.1.4":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.1.4","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/animationFrame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"engines":{},"dependencies":{},"devDependencies":{"uglify-js":"2.4.x"},"scripts":{},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/kof/animationFrame/issues"},"homepage":"https://github.com/kof/animationFrame","_id":"animation-frame@0.1.4","dist":{"shasum":"f6d06a7d5bd4ff45d98243838f956face8f1e327","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.1.4.tgz","integrity":"sha512-pS+21qm8rz4qBwyvi07AA1A09Rqi4osWyvzwY9dAlRixHWUwR8i0ldNs32uu2AUj01zwqGaZjQhqsiHK4M9O/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqDpd29+CD4Ib9Wp2h4KUJwWvtUZLxdB59xHqu4/uN6wIgHJImtdAEZS1Z3H2vUhY+s0qnJe4Qdmy11GAAtPwjaJA="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}]},"0.1.5":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.1.5","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/animationFrame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"engines":{},"dependencies":{},"devDependencies":{"uglify-js":"2.4.x"},"scripts":{},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/kof/animationFrame/issues"},"homepage":"https://github.com/kof/animationFrame","_id":"animation-frame@0.1.5","dist":{"shasum":"560c2b87d0b6f066cd11eb2414a61fdef0e799e4","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.1.5.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}]},"0.1.6":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.1.6","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/animation-frame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"main":"AnimationFrame.js","devDependencies":{"uglify-js":"2.4.x"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/kof/animation-frame/issues"},"homepage":"https://github.com/kof/animation-frame","_id":"animation-frame@0.1.6","dist":{"shasum":"9a20a8879e96eade95d4850a7526598c4eaf66fa","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.1.6.tgz","integrity":"sha512-Yv1gCAog3j+9xXx2WbiIubu7Pg3Hh+TOVttuDUYsLG8ihIkjoa+EhSta326eFVL68ZZtevXijfceDHmPTjA++Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdGwKvq8AN71suidxncsNoolQ14C1gHAlkSOr9DZSxcQIhAL8j/+l1zIC/H8OaR5Kw3BXagnA0T9XD3eyVeHm/gpCC"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}]},"0.1.7":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.1.7","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/animation-frame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"main":"AnimationFrame.js","devDependencies":{"uglify-js":"2.4.x"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/kof/animation-frame/issues"},"homepage":"https://github.com/kof/animation-frame","_id":"animation-frame@0.1.7","dist":{"shasum":"f0eed5cd1d4ede87b9f56d17da5b78c65f6dbe31","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.1.7.tgz","integrity":"sha512-fBCQo+O2LFTP+m9rtub0nbn2OHpq/RoDNW8aAimWL+m1BXRuIYKFMmJLFuvtT3shGI1fbq+MKG+lCK3FN1qCKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDVIY6gIVyJj8UzEQRd/MjTmGOMaHV3TiaVL6YUDjzWJAiBpdJcZqRDi93jMJPUiNEzDkHKRpNbgBTnhCCXjimpWdw=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}]},"0.2.1":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.2.1","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/animation-frame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"main":"AnimationFrame.js","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"uglify-js":"2.4.x","browserify":"8.1.x","xpkg":"0.2.x"},"gitHead":"a8e441d3891ce28645ca5a4247fd5059380ae723","bugs":{"url":"https://github.com/kof/animation-frame/issues"},"homepage":"https://github.com/kof/animation-frame","_id":"animation-frame@0.2.1","scripts":{},"_shasum":"d93ce41f2eb8dcca98941677fc306df591e7f1b9","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"dist":{"shasum":"d93ce41f2eb8dcca98941677fc306df591e7f1b9","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.2.1.tgz","integrity":"sha512-N28bf7/B16zdWgUwhwxEQQjhk0RVBm2Ts5wR65ObMrmY0p2BYMqAFGVxvllTzinYsAXvHrxQWJKav3AFDBiQOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrBrpyLBLgdJnbx95Ns+Go+GcG0esL6GCJGPbqMZFTBAIgNnONls8DrH1qgA2hsr5MxJkSkEmQwhbj9jWvAVi0Y9Q="}]}},"0.2.2":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.2.2","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/animation-frame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"main":"index.js","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"uglify-js":"2.4.x","browserify":"8.1.x","xpkg":"0.2.x"},"gitHead":"03c91506aa339f43b20a99eae6ae76a9d9ce3dfc","bugs":{"url":"https://github.com/kof/animation-frame/issues"},"homepage":"https://github.com/kof/animation-frame","_id":"animation-frame@0.2.2","scripts":{},"_shasum":"398ff2439586158f2070d7607309a82d09727e7e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"dist":{"shasum":"398ff2439586158f2070d7607309a82d09727e7e","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.2.2.tgz","integrity":"sha512-ObzIH5iT8BHT/YaR2WVB8tqeSNrHnUM7m4Yi7OPOvITE28dQgOz4oNNZAli4FPIVA0mCYxGIre2KVtVz3+p2KA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY7vfk/XQa7rq6qfM+VbNMwopeFqtRny22MVpYW6OXIwIhAI0IkAlf/hCA0/ve1u+odFDv18uLzINaD9EfkEEwgXAz"}]}},"0.2.3":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.2.3","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/animation-frame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"main":"index.js","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"uglify-js":"2.4.x","browserify":"8.1.x","xpkg":"0.2.x"},"gitHead":"c6b1e4a4e5e00de91fdf9f4a210bdba489d7e674","bugs":{"url":"https://github.com/kof/animation-frame/issues"},"homepage":"https://github.com/kof/animation-frame","_id":"animation-frame@0.2.3","scripts":{},"_shasum":"58d0674d98ae5c02a96677ac6d3f681cd18a19b4","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"dist":{"shasum":"58d0674d98ae5c02a96677ac6d3f681cd18a19b4","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.2.3.tgz","integrity":"sha512-7Pm/B+n+Hc2B4plGQQENe1P/r/i33fAoZ9AySL1Y2O5YxGnbwlFsqgID/A5Gy+BOA2c0AknE93qfmsW/gW3lHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDACF7GU3VhoukbSFrhrcI7uGEBgB0Zc7/b5EEfloTsAQIhAPRUWRlrHzVWwYwS/5GZCX9u+bltq4VSIxJsnuW5+DK4"}]}},"0.2.4":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.2.4","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git@github.com:kof/animation-frame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"main":"index.js","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"uglify-js":"2.4.x","browserify":"8.1.x","xpkg":"0.2.x"},"gitHead":"3bb1f4dacf14ca0552c9754fc0b79bdfd9bd567a","bugs":{"url":"https://github.com/kof/animation-frame/issues"},"homepage":"https://github.com/kof/animation-frame","_id":"animation-frame@0.2.4","scripts":{},"_shasum":"46f53ecd5dc3558deafbfb309dbc5440f6a20fa1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"dist":{"shasum":"46f53ecd5dc3558deafbfb309dbc5440f6a20fa1","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.2.4.tgz","integrity":"sha512-3ifNBtn4VAvQafe7zcwn1QQa5o4idQry+5EU5aHrV9LcXtwn0n6zDHWM4pIyn/a6N16E86drgKW0yOLFS0i/tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGE9m8NzIZ7cl4wnHWRlW0gvII0UEIHE3gPazJtrxtSPAiB1R7lurN+k+svF+It9/bRYJD05B9CnZ6drY1mTbyx+qA=="}]}},"0.2.5":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.2.5","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/kof/animation-frame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"main":"index.js","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"uglify-js":"2.4.x","browserify":"8.1.x","xpkg":"0.2.x"},"gitHead":"ff7833ffe5ba3513332a87bdfc0de62365c72217","bugs":{"url":"https://github.com/kof/animation-frame/issues"},"homepage":"https://github.com/kof/animation-frame#readme","_id":"animation-frame@0.2.5","scripts":{},"_shasum":"cdf5a91a69ad2c85ddac2b82daf7290300f05960","_from":".","_npmVersion":"2.13.0","_nodeVersion":"2.4.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"dist":{"shasum":"cdf5a91a69ad2c85ddac2b82daf7290300f05960","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.2.5.tgz","integrity":"sha512-Cckt0Q5QCzJndnD4Psr+/niDcEyKvrOX6/GvYspUOg5rpHVruRO872zVH41YkGsA0vCcV7I16RipxV8+FO4k/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3qsZ8DRmAwfqC54JTAbImsmmMfOaX7RLcFIHNgHPuSQIgBpQch8LRAIievvpQJJsuQcTABnMu5PoFNfyPEsdJD8o="}]}},"0.3.0":{"name":"animation-frame","description":"An even better requestAnimationFrame","version":"0.3.0","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/kof/animation-frame.git"},"keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"main":"index.js","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"uglify-js":"^2.6.2","browserify":"^13.0.1"},"scripts":{"build":"npm run build:browserify && npm run build:uglify","build:browserify":"browserify -e ./index.js -o ./AnimationFrame.js -s AnimationFrame","build:uglify":"uglifyjs < ./AnimationFrame.js > ./AnimationFrame.min.js --comments license"},"gitHead":"a2ccde941f5a7fbc92e2313edbaaac4181328315","bugs":{"url":"https://github.com/kof/animation-frame/issues"},"homepage":"https://github.com/kof/animation-frame#readme","_id":"animation-frame@0.3.0","_shasum":"3bb3f446ba53da38bba345582f435be3ab8aee29","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"dist":{"shasum":"3bb3f446ba53da38bba345582f435be3ab8aee29","tarball":"https://registry.npmjs.org/animation-frame/-/animation-frame-0.3.0.tgz","integrity":"sha512-UtBPve/lrZ15YkbpJSRUCHd/HpTAgybHdgjJN7T4MMtxL1Oy8YhoTYa2VZBOwaMGj41n/HjTBLwAV0bDcTIomg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBiumUj5ctiQzp492KOIR6gw/bKgfbsZrp34QPGj5LhyAiBatpP9DiiE69N9iVs0Br92YGCQkxbB/hP1UHCay/IvnQ=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/animation-frame-0.3.0.tgz_1464286637724_0.40624714316800237"}}},"readme":"## An even better requestAnimationFrame\n\n- fixed ios6 issues upgrading to the native implementation if it works (no agent sniffing)\n- like the native implementation it will group callbacks for better performance\n- like the native implementation it will degrade the frame rate depending on device performance\n- you can define your own frame rate specifically for every animation\n- highly optimized for performance\n- can be used as a shim, but has an own namespace per default\n- no performance degradation if using mutilple RAF calls in parallel (see examples/compare.html)\n\n## Usage\n\n### Get the api\n\nIf you are inside of a commonjs/amd module:\n\n    var AnimationFrame = require('animation-frame');\n\nOtherwise its defined on window:\n\n    var AnimationFrame = window.AnimationFrame;\n\n### Activate the shim `AnimationFrame.shim(options)`\n\nIt will replace native implementation if it does exist but still will use it if possible.\nSo you can use `window.requestAnimationFrame` and `window.cancelAnimationFrame` after this  safely. Optionally you can pass the frame rate.\n\n    AnimationFrame.shim(options);\n\n### Set custom default frame rate\n\nThere are devices with different refresh rate than 60 out of there. You can define a custom value, for the shim implementation. Native implementation should do it for you.\nDo it before requesting frames, because after that the frame length is cached.\n\n    AnimationFrame.FRAME_RATE = 30;\n\n### Create instance `new AnimationFrame(options)`\n\nOptions can be an object or a number, number is the custom frame rate.\n\nOptions:\n   - `useNative` use the native animation frame if possible, defaults to true\n   - `frameRate` pass a custom frame rate\n\n```\n    // Using default frame rate\n    var animationFrame = new AnimationFrame();\n\n    // Using custom frame rate.\n    var animationFrame = new AnimationFrame(20);\n\n    // Avoid using native RAF:\n    var animationFrame = new AnimationFrame({useNative: false});\n```\n\n### Request a frame `animationFrame.request(fn)`\n\n    var frameId = animationFrame.request(function(time) {\n        // Your animation here.\n    });\n\n\n### Cancel frame `animationFrame.cancel(frameId)`\n\n    var animationFrame = new AnimationFrame();\n    animationFrame.cancel(frameId);\n\n### Known problems\n- ios6-7 safari native animation frame animation can conflict with css animations, see [#2](/../../issues/2)\n\n## Credits\n\nhttp://paulirish.com/2011/requestanimationframe-for-smart-animating\n\nhttp://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating\n\nhttps://gist.github.com/paulirish/1579671\n\nhttps://gist.github.com/jonasfj/4438815\n\nhttps://gist.github.com/KrofDrakula/5318048\n\n## License\n\nMIT\n","maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"time":{"modified":"2022-06-30T10:58:08.446Z","created":"2014-01-24T23:15:25.152Z","0.1.3":"2014-01-24T23:15:25.152Z","0.1.4":"2014-02-01T09:48:14.747Z","0.1.5":"2014-02-18T19:32:25.196Z","0.1.6":"2014-02-18T19:43:00.277Z","0.1.7":"2014-04-22T14:12:39.117Z","0.2.1":"2015-02-18T11:02:20.596Z","0.2.2":"2015-02-18T21:19:41.336Z","0.2.3":"2015-02-18T21:29:45.265Z","0.2.4":"2015-03-04T11:55:10.377Z","0.2.5":"2015-08-14T11:32:52.703Z","0.3.0":"2016-05-26T18:17:19.922Z"},"readmeFilename":"readme.md","homepage":"https://github.com/kof/animation-frame#readme","keywords":["animationFrame","RAF","requestAnimationFrame","cancelAnimationFrame"],"repository":{"type":"git","url":"git+ssh://git@github.com/kof/animation-frame.git"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"bugs":{"url":"https://github.com/kof/animation-frame/issues"}}