{"_id":"element-scroll-to","_rev":"2784305","name":"element-scroll-to","description":"Scrolls an HTML element into view","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"coreh","email":"thecoreh@gmail.com"}],"time":{"modified":"2022-06-13T06:12:23.000Z","created":"2015-01-15T02:41:27.515Z","1.1.0":"2015-09-15T01:53:58.321Z","1.0.2":"2015-01-16T00:48:50.625Z","1.0.1":"2015-01-16T00:44:41.926Z","1.0.0":"2015-01-15T02:41:27.515Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/webmodules/element-scroll-to.git"},"versions":{"1.1.0":{"name":"element-scroll-to","description":"Scrolls an HTML element into view","tags":["webmodule","browser","scroll","element","view","viewport"],"repository":{"type":"git","url":"git+https://github.com/webmodules/element-scroll-to.git"},"version":"1.1.0","dependencies":{"core-js":"0.4.4"},"devDependencies":{"6to5":"2.12.0","browserify":"8.1.0"},"scripts":{"prepublish":"make build"},"gitHead":"9aa0afa6b57daba627ea6b2fc6a35fa5ac8315a3","bugs":{"url":"https://github.com/webmodules/element-scroll-to/issues"},"homepage":"https://github.com/webmodules/element-scroll-to#readme","_id":"element-scroll-to@1.1.0","_shasum":"9a7eda0a3bd866846d93a8aed6c9a3aa6637810e","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"coreh","email":"thecoreh@gmail.com"},"maintainers":[{"name":"coreh","email":"thecoreh@gmail.com"}],"dist":{"shasum":"9a7eda0a3bd866846d93a8aed6c9a3aa6637810e","size":2990,"noattachment":false,"key":"/element-scroll-to/-/element-scroll-to-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/element-scroll-to/download/element-scroll-to-1.1.0.tgz"},"directories":{},"publish_time":1442282038321,"_hasShrinkwrap":false,"_cnpm_publish_time":1442282038321,"_cnpmcore_publish_time":"2021-12-16T14:33:49.910Z"},"1.0.2":{"name":"element-scroll-to","description":"Scrolls an HTML element into view","tags":["webmodule","browser","scroll","element","view","viewport"],"repository":{"type":"git","url":"https://github.com/webmodules/element-scroll-to.git"},"version":"1.0.2","dependencies":{"core-js":"0.4.4"},"devDependencies":{"6to5":"2.12.0","browserify":"8.1.0"},"scripts":{"prepublish":"make build"},"gitHead":"ca09e4ded693f51461b2ed35bc09925ee45add42","bugs":{"url":"https://github.com/webmodules/element-scroll-to/issues"},"homepage":"https://github.com/webmodules/element-scroll-to","_id":"element-scroll-to@1.0.2","_shasum":"e95bc3835254b31d3aa2ad1e99c80c875d94fff5","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"coreh","email":"thecoreh@gmail.com"},"maintainers":[{"name":"coreh","email":"thecoreh@gmail.com"}],"dist":{"shasum":"e95bc3835254b31d3aa2ad1e99c80c875d94fff5","size":23366,"noattachment":false,"key":"/element-scroll-to/-/element-scroll-to-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/element-scroll-to/download/element-scroll-to-1.0.2.tgz"},"directories":{},"publish_time":1421369330625,"_hasShrinkwrap":false,"_cnpm_publish_time":1421369330625,"_cnpmcore_publish_time":"2021-12-16T14:33:50.174Z"},"1.0.1":{"name":"element-scroll-to","description":"Scrolls an HTML element into view","tags":["webmodule","browser","scroll","element","view","viewport"],"repository":{"type":"git","url":"https://github.com/webmodules/element-scroll-to.git"},"version":"1.0.1","dependencies":{"core-js":"0.4.4"},"devDependencies":{"6to5":"2.12.0","browserify":"8.1.0"},"scripts":{"prepublish":"make build"},"gitHead":"5855a8c7536fc0abb0bc4f51b889efa6a6f87eea","bugs":{"url":"https://github.com/webmodules/element-scroll-to/issues"},"homepage":"https://github.com/webmodules/element-scroll-to","_id":"element-scroll-to@1.0.1","_shasum":"801b28d4c0c9e22233361d55296ea2a28832642b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"coreh","email":"thecoreh@gmail.com"},"maintainers":[{"name":"coreh","email":"thecoreh@gmail.com"}],"dist":{"shasum":"801b28d4c0c9e22233361d55296ea2a28832642b","size":23354,"noattachment":false,"key":"/element-scroll-to/-/element-scroll-to-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/element-scroll-to/download/element-scroll-to-1.0.1.tgz"},"directories":{},"publish_time":1421369081926,"_hasShrinkwrap":false,"_cnpm_publish_time":1421369081926,"_cnpmcore_publish_time":"2021-12-16T14:33:50.405Z"},"1.0.0":{"name":"element-scroll-to","description":"Scrolls an HTML element into view","tags":["webmodule","browser","scroll","element","view","viewport"],"repository":{"type":"git","url":"https://github.com/webmodules/element-scroll-to.git"},"version":"1.0.0","dependencies":{"core-js":"0.4.4"},"devDependencies":{"6to5":"2.12.0","browserify":"8.1.0"},"scripts":{"prepublish":"make build"},"gitHead":"4aba68877df0d3a93d8800f3ef49396764952be2","bugs":{"url":"https://github.com/webmodules/element-scroll-to/issues"},"homepage":"https://github.com/webmodules/element-scroll-to","_id":"element-scroll-to@1.0.0","_shasum":"9c360902e2218c131036faaf0c6774e980789987","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"coreh","email":"thecoreh@gmail.com"},"maintainers":[{"name":"coreh","email":"thecoreh@gmail.com"}],"dist":{"shasum":"9c360902e2218c131036faaf0c6774e980789987","size":22829,"noattachment":false,"key":"/element-scroll-to/-/element-scroll-to-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/element-scroll-to/download/element-scroll-to-1.0.0.tgz"},"directories":{},"publish_time":1421289687515,"_hasShrinkwrap":false,"_cnpm_publish_time":1421289687515,"_cnpmcore_publish_time":"2021-12-16T14:33:50.668Z"}},"readme":"# element-scroll-to\n\nMakes sure an element is fully visible on the browser viewport,\nby recursively scrolling all elements that might be containing it,\nalong with the browser window.\n\nIf scrolling the entirety of the element into the viewport is not\npossible (e.g. it's larger than the viewport, or positioned outside\nof the page) a best effort is made to position it on the viewport.\n\nIf the supplied element is `position: fixed` or `position: sticky`,\nthe behavior is undefined.\n\n## Usage\n\n```js\nvar scrollTo = require('element-scroll-to');\n\n// ...\n\nscrollTo(element, options);\n```\n\noptions may include:\n\n- `margin` (default 0): additional gutters around the element\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Automattic Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/webmodules/element-scroll-to#readme","bugs":{"url":"https://github.com/webmodules/element-scroll-to/issues"}}