{"_id":"scroll","_rev":"2829250","name":"scroll","description":"animates the scroll top/left position of an element","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"time":{"modified":"2022-09-06T14:42:25.000Z","created":"2014-01-06T11:15:10.863Z","3.0.1":"2019-03-06T07:16:26.934Z","3.0.0":"2019-02-01T00:34:34.634Z","2.0.3":"2018-02-19T05:56:26.565Z","2.0.2":"2018-02-18T00:57:10.780Z","2.0.1":"2017-09-16T03:42:31.972Z","2.0.0":"2016-06-07T20:49:47.543Z","1.0.1":"2016-06-07T20:22:15.939Z","1.0.0":"2015-10-21T19:30:18.281Z","0.0.3":"2014-01-06T22:41:34.975Z","0.0.2":"2014-01-06T22:39:56.857Z","0.0.1":"2014-01-06T11:34:43.762Z","0.0.0":"2014-01-06T11:15:10.863Z"},"users":{},"author":{"name":"Michael Rhodes"},"repository":{"type":"git","url":"git+ssh://git@github.com/michaelrhodes/scroll.git"},"versions":{"3.0.1":{"name":"scroll","author":{"name":"Michael Rhodes"},"version":"3.0.1","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/michaelrhodes/scroll.git"},"description":"animates the scroll top/left position of an element","keyword":["scrollTop","scrollLeft","scrollTo","animate"],"license":"MIT","scripts":{"test":"wzrd test.js"},"devDependencies":{"ease-component":"~1.0.0","tape":"~2.3.2","wzrd":"~1.5.0"},"gitHead":"c623f9efe7731e88649659edc9841349ed792360","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll#readme","_id":"scroll@3.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"dist":{"shasum":"d5afb59fb3592ee3df31c89743e78b39e4cd8a26","size":2722,"noattachment":false,"key":"/scroll/-/scroll-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-3.0.1.tgz"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scroll_3.0.1_1551856586834_0.9963248138030505"},"_hasShrinkwrap":false,"publish_time":1551856586934,"_cnpm_publish_time":1551856586934,"_cnpmcore_publish_time":"2021-12-16T10:34:41.896Z"},"3.0.0":{"name":"scroll","author":{"name":"Michael Rhodes"},"version":"3.0.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/michaelrhodes/scroll.git"},"description":"animates the scroll top/left position of an element","keyword":["scrollTop","scrollLeft","scrollTo","animate"],"license":"MIT","scripts":{"test":"tape test.js"},"devDependencies":{"ease-component":"~1.0.0","tape":"~2.3.2"},"gitHead":"2e9ea9824aa1ca7e57c81f349b1e37ef961f7b02","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll#readme","_id":"scroll@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"dist":{"shasum":"50cd669ee897727b996a3214db0c9c8ebbb7d0cf","size":2702,"noattachment":false,"key":"/scroll/-/scroll-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-3.0.0.tgz"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scroll_3.0.0_1548981274528_0.27549751788311583"},"_hasShrinkwrap":false,"publish_time":1548981274634,"_cnpm_publish_time":1548981274634,"_cnpmcore_publish_time":"2021-12-16T10:34:42.119Z"},"2.0.3":{"name":"scroll","author":{"name":"Michael Rhodes"},"version":"2.0.3","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/michaelrhodes/scroll.git"},"description":"A function that animates an element’s scrollTop or scrollLeft position.","keyword":["scrollTop","scrollTo","animate"],"license":"MIT","scripts":{"test":"tape test.js"},"dependencies":{"rafl":"~1.2.1"},"devDependencies":{"ease-component":"~1.0.0","tape":"~2.3.2"},"gitHead":"9138e3af7144591145d3946495293389a11c507d","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll#readme","_id":"scroll@2.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"dist":{"shasum":"0951b785544205fd17753bc3d294738ba16fc2ab","size":2096,"noattachment":false,"key":"/scroll/-/scroll-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-2.0.3.tgz"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scroll_2.0.3_1519019786516_0.04310663027949024"},"_hasShrinkwrap":false,"publish_time":1519019786565,"_cnpm_publish_time":1519019786565,"_cnpmcore_publish_time":"2021-12-16T10:34:42.315Z"},"2.0.2":{"name":"scroll","author":{"name":"Michael Rhodes"},"version":"2.0.2","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/michaelrhodes/scroll.git"},"description":"A function that animates an element’s scrollTop or scrollLeft position.","keyword":["scrollTop","scrollTo","animate"],"license":"MIT","scripts":{"test":"tape test.js"},"dependencies":{"rafl":"~1.2.1"},"devDependencies":{"ease-component":"~1.0.0","tape":"~2.3.2"},"gitHead":"7ad5d38a0f0a2485d6734e1c10a0e0ec559e6b49","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll#readme","_id":"scroll@2.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"dist":{"shasum":"94a919e5b55ce71786a385b651e882a8c97fc54f","size":2084,"noattachment":false,"key":"/scroll/-/scroll-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-2.0.2.tgz"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scroll_2.0.2_1518915430706_0.2032516433085998"},"_hasShrinkwrap":false,"publish_time":1518915430780,"_cnpm_publish_time":1518915430780,"_cnpmcore_publish_time":"2021-12-16T10:34:42.531Z"},"2.0.1":{"name":"scroll","version":"2.0.1","description":"A function that animates an element’s scrollTop or scrollLeft position.","main":"index.js","dependencies":{"rafl":"~1.2.1"},"devDependencies":{"ease-component":"~1.0.0","tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9,10],"chrome":[20,25,29],"firefox":[3,4,7,19,24],"safari":[5.1,6],"opera":[10,12,15],"iphone":[6],"android":[4.2]}},"repository":{"type":"git","url":"git@github.com:michaelrhodes/scroll.git"},"keywords":["scrollTop","scrollTo","animate"],"author":{"name":"Michael Rhodes"},"license":"MIT","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll","gitHead":"42a6f762dcf039492793992937b9526a85c32cb5","_id":"scroll@2.0.1","_shasum":"b4c7d27e8bcf3ae8a58a042f27268ae3f55f9ccd","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"dist":{"shasum":"b4c7d27e8bcf3ae8a58a042f27268ae3f55f9ccd","size":2315,"noattachment":false,"key":"/scroll/-/scroll-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-2.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scroll-2.0.1.tgz_1505533351824_0.10928521165624261"},"directories":{},"publish_time":1505533351972,"_hasShrinkwrap":false,"_cnpm_publish_time":1505533351972,"_cnpmcore_publish_time":"2021-12-16T10:34:42.738Z"},"2.0.0":{"name":"scroll","version":"2.0.0","description":"A function that animates an element’s scrollTop or scrollLeft position.","main":"index.js","dependencies":{"rafl":"~1.2.1"},"devDependencies":{"ease-component":"~1.0.0","tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9,10],"chrome":[20,25,29],"firefox":[3,4,7,19,24],"safari":[5.1,6],"opera":[10,12,15],"iphone":[6],"android":[4.2]}},"repository":{"type":"git","url":"git+ssh://git@github.com/michaelrhodes/scroll.git"},"keywords":["scrollTop","scrollTo","animate"],"author":{"name":"Michael Rhodes"},"license":"MIT","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll","gitHead":"8bf0f60b8f18fab03dcbbfcddb464f0ec8558e69","_id":"scroll@2.0.0","_shasum":"55cba0d84eb845d98fe3579a801e5722a6a3a81f","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.0","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"dist":{"shasum":"55cba0d84eb845d98fe3579a801e5722a6a3a81f","size":2213,"noattachment":false,"key":"/scroll/-/scroll-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-2.0.0.tgz"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/scroll-2.0.0.tgz_1465332586984_0.47703068633563817"},"directories":{},"publish_time":1465332587543,"_hasShrinkwrap":false,"_cnpm_publish_time":1465332587543,"_cnpmcore_publish_time":"2021-12-16T10:34:42.977Z"},"1.0.1":{"name":"scroll","version":"1.0.1","description":"A function that animates an element’s scrollTop or scrollLeft position.","main":"index.js","dependencies":{"ease-component":"~1.0.0","rafl":"~1.2.1"},"devDependencies":{"tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9,10],"chrome":[20,25,29],"firefox":[3,4,7,19,24],"safari":[5.1,6],"opera":[10,12,15],"iphone":[6],"android":[4.2]}},"repository":{"type":"git","url":"git+ssh://git@github.com/michaelrhodes/scroll.git"},"keywords":["scrollTop","scrollTo","animate"],"author":{"name":"Michael Rhodes"},"license":"MIT","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll","gitHead":"312b9d17178490301078d3d52eb0512c67272e43","_id":"scroll@1.0.1","_shasum":"8f95ce47c9d7b874c3cb32fde52cf1be72630079","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.0","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"dist":{"shasum":"8f95ce47c9d7b874c3cb32fde52cf1be72630079","size":2111,"noattachment":false,"key":"/scroll/-/scroll-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-1.0.1.tgz"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/scroll-1.0.1.tgz_1465330935482_0.8286614448297769"},"directories":{},"publish_time":1465330935939,"_hasShrinkwrap":false,"_cnpm_publish_time":1465330935939,"_cnpmcore_publish_time":"2021-12-16T10:34:43.252Z"},"1.0.0":{"name":"scroll","version":"1.0.0","description":"A function that animates an element’s scrollTop or scrollLeft position.","main":"index.js","dependencies":{"ease-component":"~1.0.0","raf-component":"~1.1.2"},"devDependencies":{"tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9,10],"chrome":[20,25,29],"firefox":[3,4,7,19,24],"safari":[5.1,6],"opera":[10,12,15],"iphone":[6],"android":[4.2]}},"repository":{"type":"git","url":"git@github.com:michaelrhodes/scroll.git"},"keywords":["scrollTop","scrollTo","animate"],"author":{"name":"Michael Rhodes"},"license":"MIT","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll","gitHead":"496394058b0dce472b6b44f9e6e588ba97243bcd","_id":"scroll@1.0.0","_shasum":"8361e446e436b9936bfe1e3a9d820ab9ddc183fe","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"dist":{"shasum":"8361e446e436b9936bfe1e3a9d820ab9ddc183fe","size":2145,"noattachment":false,"key":"/scroll/-/scroll-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-1.0.0.tgz"},"directories":{},"publish_time":1445455818281,"_hasShrinkwrap":false,"_cnpm_publish_time":1445455818281,"_cnpmcore_publish_time":"2021-12-16T10:34:43.462Z"},"0.0.3":{"name":"scroll","version":"0.0.3","description":"A function that animates an element’s scrollTop/scrollLeft values.","main":"index.js","dependencies":{"ease-component":"~1.0.0","raf-component":"~1.1.2","eventlistener":"0.0.1"},"devDependencies":{"tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9,10],"chrome":[20,25,29],"firefox":[3,4,7,19,24],"safari":[5.1,6],"opera":[10,12,15],"iphone":[6],"android":[4.2]}},"repository":{"type":"git","url":"git@github.com:michaelrhodes/scroll.git"},"keywords":["scrollTop","scrollTo","animate"],"author":{"name":"Michael Rhodes"},"license":"MIT","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll","readmeFilename":"readme.md","_id":"scroll@0.0.3","dist":{"shasum":"ee10d6a8c9f856166068844022ea0cacd1d96c25","size":1997,"noattachment":false,"key":"/scroll/-/scroll-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"directories":{},"publish_time":1389048094975,"_hasShrinkwrap":false,"_cnpm_publish_time":1389048094975,"_cnpmcore_publish_time":"2021-12-16T10:34:43.703Z"},"0.0.2":{"name":"scroll","version":"0.0.2","description":"A function that animates an element’s scrollTop value.","main":"index.js","dependencies":{"ease-component":"~1.0.0","raf-component":"~1.1.2","eventlistener":"0.0.1"},"devDependencies":{"tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9,10],"chrome":[20,25,29],"firefox":[3,4,7,19,24],"safari":[5.1,6],"opera":[10,12,15],"iphone":[6],"android":[4.2]}},"repository":{"type":"git","url":"git@github.com:michaelrhodes/scroll.git"},"keywords":["scrollTop","scrollTo","animate"],"author":{"name":"Michael Rhodes"},"license":"MIT","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll","readmeFilename":"readme.md","_id":"scroll@0.0.2","dist":{"shasum":"5bc03d9864721ee83f34be82a05968ecd447dd03","size":1991,"noattachment":false,"key":"/scroll/-/scroll-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"directories":{},"publish_time":1389047996857,"_hasShrinkwrap":false,"_cnpm_publish_time":1389047996857,"_cnpmcore_publish_time":"2021-12-16T10:34:43.971Z"},"0.0.1":{"name":"scroll","version":"0.0.1","description":"A function that animates an element’s scrollTop value.","main":"index.js","dependencies":{"ease-component":"~1.0.0","raf-component":"~1.1.2","eventlistener":"0.0.1"},"devDependencies":{"tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9,10],"chrome":[20,25,29],"firefox":[3,4,7,19,24],"safari":[5.1,6],"opera":[10,12,15],"iphone":[6],"android":[4.2]}},"repository":{"type":"git","url":"git@github.com:michaelrhodes/scroll.git"},"keywords":["scrollTop","scrollTo","animate"],"author":{"name":"Michael Rhodes"},"license":"MIT","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll","readmeFilename":"readme.md","_id":"scroll@0.0.1","dist":{"shasum":"710faf75da5b003d434a4cf158bcc0c1d511252e","size":1982,"noattachment":false,"key":"/scroll/-/scroll-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"directories":{},"publish_time":1389008083762,"_hasShrinkwrap":false,"_cnpm_publish_time":1389008083762,"_cnpmcore_publish_time":"2021-12-16T10:34:44.208Z"},"0.0.0":{"name":"scroll","version":"0.0.0","description":"A function that animates an element’s scrollTop value.","main":"index.js","dependencies":{"ease-component":"~1.0.0","raf-component":"~1.1.2","eventlistener":"0.0.1"},"devDependencies":{"tape":"~2.3.2"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9,10],"chrome":[20,25,29],"firefox":[3,4,7,19,24],"safari":[5.1,6],"opera":[10,12,15],"iphone":[6],"android":[4.2]}},"repository":{"type":"git","url":"git@github.com:michaelrhodes/scroll.git"},"keywords":["scrollTop","scrollTo","animate"],"author":{"name":"Michael Rhodes"},"license":"MIT","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"homepage":"https://github.com/michaelrhodes/scroll","readmeFilename":"readme.md","_id":"scroll@0.0.0","dist":{"shasum":"cac67ab7f631ec8cc6a7e83f7b36044fe5ad7105","size":1967,"noattachment":false,"key":"/scroll/-/scroll-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scroll/download/scroll-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"michaelrhodes","email":"spam@michaelrhod.es"},"maintainers":[{"name":"michaelrhodes","email":"spam@michaelrhod.es"}],"directories":{},"publish_time":1389006910863,"_hasShrinkwrap":false,"_cnpm_publish_time":1389006910863,"_cnpmcore_publish_time":"2021-12-16T10:34:44.433Z"}},"readme":"# scroll\nanimates the scroll top/left position of an element (in 340 bytes)\n\n[![browser support](https://ci.testling.com/michaelrhodes/scroll.png)](https://ci.testling.com/michaelrhodes/scroll)\n\nnote: you may need to polyfill [`requestAnimationFrame`](https://caniuse.com/#feat=requestanimationframe) in older browsers\n\n## install\n```sh\nnpm install scroll\n```\n\n## use\n```js\nvar scroll = require('scroll')\nvar page = require('scroll-doc')()\nvar ease = require('ease-component')\n\n// Basic usage\nscroll.left(page, 200)\n\n// Register a callback\nscroll.top(page, 200, function (err, scrollTop) {\n  console.log(err)\n  // { message: \"Scroll cancelled\" } or\n  // { message: \"Element already at target scroll position\" } or\n  // null\n\n  console.log(scrollTop)\n  // => The new scrollTop position of the element\n  // This is always returned, even when there’s an `err`.\n})\n\n// Specify a custom easing function\nscroll.left(page, 200, { ease: ease.inBounce })\n\n// Specify a duration in milliseconds (default: 350) and register a callback.\nscroll.left(page, 200, { duration: 1000 }, function (err, scrollLeft) {\n})\n\n// Cancel a scroll animation\nvar options = { duration: 1000 }\nvar cancel = scroll.top(page, 200, options, function (err, scrollTop) {\n  console.log(err.message)\n  // => Scroll cancelled\n\n  page.removeEventListener('wheel', cancel)\n})\n\npage.addEventListener('wheel', cancel)\n```\n\nnote: the default easing is `inOutSine` from [component/ease](https://github.com/component/ease).\n\n## obey\n[MIT](https://github.com/michaelrhodes/scroll/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/michaelrhodes/scroll#readme","bugs":{"url":"https://github.com/michaelrhodes/scroll/issues"},"license":"MIT"}