在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:customd/jquery-visible开源软件地址:https://github.com/customd/jquery-visible开源编程语言:HTML 53.1%开源软件介绍:Element Onscreen VisibilityThis is a jQuery plugin which allows us to quickly check if an element is within the browsers visual viewport, regardless of the scroll position. If a user can see this element, the function will return true. DocumentationBasic visibility checkThis basic check will return
If you'd like to check for ANY PART of the element, you can use the following:
The plugin ignores the elements visibility by default. E.g.,
Optionally, you can specify a second parameter to the
Optionally, you can add a third parameter to specify the direction to check for visibility. This can either be 'horizontal', 'vertical' or 'both'. Default is to 'both'.
DemosThe Demos for this plugin live under the examples/ directory. Open them directly in your web browser, or view the following online examples: See the blog article: LimitationsCurrently, this plugin will not check for visibility in nested scrollable areas, only on the main viewport (window object). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论