{"id":26581683,"url":"https://github.com/besworks/pop-out","last_synced_at":"2026-04-18T14:35:27.573Z","repository":{"id":182215675,"uuid":"480717572","full_name":"besworks/pop-out","owner":"besworks","description":"Web Component combo that allows child elements to expand out of their parent's overflow area.","archived":false,"fork":false,"pushed_at":"2022-04-16T23:53:58.000Z","size":405,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T07:33:30.575Z","etag":null,"topics":["css","custom-element","html","js","overflow","webcomponent"],"latest_commit_sha":null,"homepage":"https://bes.works/bits/?pop-out","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/besworks.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,"governance":null}},"created_at":"2022-04-12T08:23:02.000Z","updated_at":"2025-03-16T23:47:26.000Z","dependencies_parsed_at":"2023-07-19T06:41:46.111Z","dependency_job_id":null,"html_url":"https://github.com/besworks/pop-out","commit_stats":null,"previous_names":["besworks/pop-out"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/besworks/pop-out","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besworks%2Fpop-out","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besworks%2Fpop-out/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besworks%2Fpop-out/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besworks%2Fpop-out/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/besworks","download_url":"https://codeload.github.com/besworks/pop-out/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besworks%2Fpop-out/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31972540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["css","custom-element","html","js","overflow","webcomponent"],"created_at":"2025-03-23T07:31:11.604Z","updated_at":"2026-04-18T14:35:27.556Z","avatar_url":"https://github.com/besworks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pop Out!\n\nThis custom element combo provides a scrollable element with child elements that expand out of the overflow area when hovered. It was created in response to a [long-standing issue](https://github.com/w3c/csswg-drafts/issues/4092) with the CSS spec and [this question](https://stackoverflow.com/questions/71809003/overflow-x-scroll-and-overflow-y-visible-alternative/) on Stack Overflow.\n\n### How it Works\n\nThe child elements are plucked out from the static context and positioned fixed to the viewport while simultaneously inserting a placeholder of the same dimensions into the static context to prevent the layout from collapsing.\n\n### Usage\n\n```\n\u003cscript type=\"module\" src=\"./pop-out.js\"\u003e\u003c/script\u003e\n\u003cover-scroll\u003e\n  \u003cpop-out\u003e\u003cimg src=\"./your.png\"\u003e\u003c/pop-out\u003e\n  \u003cpop-out\u003e\u003cimg src=\"./content.svg\"\u003e\u003c/pop-out\u003e\n  \u003cpop-out\u003e\u003cimg src=\"./here.jpg\"\u003e\u003c/pop-out\u003e\n\u003c/over-scroll\u003e\n```\n\nBoth element definitions are imported by the single script tag. You can also import the classes into your script and create these programatically.\n\n```\nimport { OverScrollElement, PopOutElement } from './pop-out.js';\n\nlet overScroll = new OverScrollElement();\nlet popOut = new PopOutElement();\npopOut.innerHTML = `\u003ch1\u003e Hello! \u003c/h1\u003e`;\noverScroll.append(popOut);\ndocument.body.append(overScroll);\n```\n\nThe outer, `over-scroll` element is necessary to enable scroll events to pass through the nested elements and gracefully de-zoom the active element. The default mode is to scroll horizontally. Adding a `vertical` attribute modifies the scroll direction and makes it `display:inline-flex`.\n\n````\n\u003cover-scroll vertical\u003e\n   ...\n\u003c/over-scroll\u003e\n````\n\nYou can pass any markup/elements you want into `pop-out` though images and center justified content tend to work best. You have full control over the styling of your content. A few default rules are applied to `pop-out` elements that can be overriden:\n\n```\npop-out {\n  display: block;\n  cursor: zoom-in;\n  user-select: none;\n  --scale-amount: 1.5;\n  --scale-speed: 0.2s;\n  --scale-timing: ease;\n  --shadow-in: drop-shadow(0 0 0.2rem #00000033);\n  --shadow-out: drop-shadow(0 0 1rem #00000088);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbesworks%2Fpop-out","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbesworks%2Fpop-out","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbesworks%2Fpop-out/lists"}