{"_id":"jquery-visible","_rev":"2-1a726b136eb32971a27ffc6717edb345","name":"jquery-visible","description":"Quickly check if an element is within the browsers visible viewport, regardless of scroll position. If a user can see this element, the function will return true.","dist-tags":{"latest":"1.2.0"},"versions":{"1.2.0":{"name":"jquery-visible","version":"1.2.0","description":"Quickly check if an element is within the browsers visible viewport, regardless of scroll position. If a user can see this element, the function will return true.","main":"jquery.visible.js","directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/customd/jquery-visible.git"},"author":{"name":"Sam Sehnert","email":"sam@customd.com"},"license":"MIT","bugs":{"url":"https://github.com/customd/jquery-visible/issues"},"homepage":"https://github.com/customd/jquery-visible#readme","keywords":["visible","viewport","visibility","view","scroll","display","ui","helper","element","hidden","hide"],"gitHead":"107ca87ee4ecd36b92a5f1757b749d6f81f502e8","_id":"jquery-visible@1.2.0","_shasum":"4839cac492f2e7f705fd06b1cde202b5da97c1e9","_from":".","_npmVersion":"4.0.2","_nodeVersion":"4.2.3","_npmUser":{"name":"samatcd","email":"sam@customd.com"},"dist":{"shasum":"4839cac492f2e7f705fd06b1cde202b5da97c1e9","tarball":"https://registry.npmjs.org/jquery-visible/-/jquery-visible-1.2.0.tgz","integrity":"sha512-lj6Xqy7GYEwTD1audFYdv7SrBM6z7icPXNvRpS4e15RXtDksjgU7YF7EKrsqF5rCUZA99OqF+d5H8BGdcwMr+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsmnfZQrd+L6Ldk+sC0znFqx4tId7iHLYk4ye3kLX78QIgM4y8UHKXez6KvWqi3V55EH7+cAjUeT0yDznn3qctHgI="}]},"maintainers":[{"name":"samatcd","email":"sam@customd.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jquery-visible-1.2.0.tgz_1489833549900_0.39641968137584627"}}},"readme":"Element Onscreen Visibility\n===========================\n\nThis is a [jQuery](http://jquery.com/) plugin which allows us to quickly check if an element \nis within the browsers [visual viewport](http://www.quirksmode.org/mobile/viewports.html), \nregardless of the scroll position. If a user can see this element, the function will return true.\n\n\nDocumentation\n-------------\n### Basic visibility check\n\nThis basic check will return `true` if the entire element is visible to the user (within the visual viewport).\n\n\t$('#element').visible();\n\nIf you'd like to check for ANY PART of the element, you can use the following:\n\n\t$('#element').visible( true );\n\nThe plugin ignores the elements visibility by default. E.g., `display:none`, `visibility: hidden`, `offsetWidth` or `offsetHeight` is 0). \nTo filter on css visibility, you can use the jQuery `:visible` selector:\n\n\t$('#element:visible').visible();\n\nOptionally, you can specify a second parameter to the `.visible` plugin, which will check whether the element is visible, as well as\nwhether it's within the viewport too.\n\n\t$('#element:visible').visible( false, true );\n\nOptionally, you can add a third parameter to specify the direction to check for visibility. This can either be 'horizontal', 'vertical' or 'both'.\nDefault is to 'both'.\n\n    $('#element').visible( false, false, 'horizontal' );\n\n\nDemos\n-----\n\nThe Demos for this plugin live under the examples/ directory. Open them directly in your web browser, or view the following online examples:\n\n- [Basic Demo](http://opensource.teamdf.com/visible/examples/demo-basic.html)\n\nSee the blog article:\n\n- [Checking if an element is visible on-screen using jQuery](https://www.customd.com/articles/13/checking-if-an-element-is-visible-on-screen-using-jquery)\n\n\nLimitations\n-----------\n\nCurrently, this plugin will not check for visibility in nested scrollable areas, only on the main viewport (window object).\n","maintainers":[{"name":"samatcd","email":"sam@customd.com"}],"time":{"modified":"2022-06-19T05:16:29.172Z","created":"2017-03-18T10:39:11.639Z","1.2.0":"2017-03-18T10:39:11.639Z"},"homepage":"https://github.com/customd/jquery-visible#readme","keywords":["visible","viewport","visibility","view","scroll","display","ui","helper","element","hidden","hide"],"repository":{"type":"git","url":"git+https://github.com/customd/jquery-visible.git"},"author":{"name":"Sam Sehnert","email":"sam@customd.com"},"bugs":{"url":"https://github.com/customd/jquery-visible/issues"},"license":"MIT","readmeFilename":"README.markdown"}