{"id":20595486,"url":"https://github.com/thefrontside/element-is-visible","last_synced_at":"2025-04-14T23:43:26.987Z","repository":{"id":41596297,"uuid":"299648346","full_name":"thefrontside/element-is-visible","owner":"thefrontside","description":"Robust algorithm for checking whether a DOM element is visible. Extracted from Selenium.","archived":false,"fork":false,"pushed_at":"2022-04-29T13:58:20.000Z","size":217,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"v1","last_synced_at":"2025-03-28T11:43:26.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thefrontside.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-29T14:48:30.000Z","updated_at":"2021-11-29T16:18:27.000Z","dependencies_parsed_at":"2022-08-10T04:23:34.595Z","dependency_job_id":null,"html_url":"https://github.com/thefrontside/element-is-visible","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefrontside%2Felement-is-visible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefrontside%2Felement-is-visible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefrontside%2Felement-is-visible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefrontside%2Felement-is-visible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thefrontside","download_url":"https://codeload.github.com/thefrontside/element-is-visible/tar.gz/refs/heads/v1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830401,"owners_count":21168272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T08:13:15.152Z","updated_at":"2025-04-14T23:43:26.970Z","avatar_url":"https://github.com/thefrontside.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# element-is-visible\n\nChecks whether a DOM element is visible through various heuristics, such as\nchecking CSS properties, sizing and overflow. The code is extracted from the\n[Selenium](https://github.com/SeleniumHQ/selenium) project.\n\nIn comparison to other stand-alone libraries which perform this function, the\nalogrithm implemented by Selenium is much more comprehensive and checks more\nedge cases. It is still a best guess as to whether an element really is\nvisible, for example an element with a very low opacity is counted as visible,\neven though it probably cannot be seen by an actual human.\n\nSupports JSDOM by skipping the layout and sizing based checks.\n\n## Usage\n\n``` typescript\nimport { isVisible } from 'element-is-visible';\n\nlet element = document.querySelector('#some-element');\n\nisVisible(element) // =\u003e true\n```\n\n## License\n\nApache2, see separate LICENSE and NOTICE files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefrontside%2Felement-is-visible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthefrontside%2Felement-is-visible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefrontside%2Felement-is-visible/lists"}