{"id":22345720,"url":"https://github.com/gerhynes/flex-panel-gallery","last_synced_at":"2026-04-13T12:01:52.311Z","repository":{"id":106045257,"uuid":"105862048","full_name":"gerhynes/flex-panel-gallery","owner":"gerhynes","description":"An image gallery built to practice Flexbox and vanilla JavaScript. Built for Wes Bos' JavaScript 30 course","archived":false,"fork":false,"pushed_at":"2018-01-14T19:37:07.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-15T22:58:44.657Z","etag":null,"topics":["flexbox","javascript","javascript30"],"latest_commit_sha":null,"homepage":"https://gk-hynes.github.io/flex-panel-gallery/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gerhynes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-05T07:37:58.000Z","updated_at":"2018-01-23T21:47:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"d149407a-243c-430c-8c15-a98617c78786","html_url":"https://github.com/gerhynes/flex-panel-gallery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gerhynes/flex-panel-gallery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fflex-panel-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fflex-panel-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fflex-panel-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fflex-panel-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerhynes","download_url":"https://codeload.github.com/gerhynes/flex-panel-gallery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fflex-panel-gallery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flexbox","javascript","javascript30"],"created_at":"2024-12-04T09:18:29.015Z","updated_at":"2026-04-13T12:01:52.262Z","avatar_url":"https://github.com/gerhynes.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Flex Panel Gallery](https://gk-hynes.github.io/flex-panel-gallery/)\n\nAn image gallery built to practice Flexbox and vanilla JavaScript. Built for Wes Bos' [JavaScript 30](https://javascript30.com/) course.\n\n[![Screenshot of Flex Panel Gallery](https://screenshots.firefoxusercontent.com/images/3d4e84c4-6218-4dc2-81c7-1158ee14a288.jpg)](https://gk-hynes.github.io/flex-panel-gallery/)\n\n## Notes\n\nAn element in CSS can be both a flex item and a flex container.\n\nSet all the panels to `display: flex;` and they will each take up only as much space as their content needs.\n\nSet each panel to `flex: 1;` and they will divide up the extra space equally among themselves.\n\nSet each panel to `display: flex;` and `flex-direction: column;` to vertically centre the content.\n\nSet each panel to\n\n```\nflex: 1 0 auto;\ndisplay: flex;\njustify-content: center;\nalign-items: center;\n```\n\nto evenly divide the panel into three sections.\n\nUse `transform: translateY()` to push the top and bottom text content off the screen and the class `open-active` to transition them back in.\n\nWhen a panel has a class of `open` set it to `flex: 5;` so it will take up five times as much of the extra room as the other panels.\n\nBy giving a panel a transition set to a cubic bezier it will transition beyond its correct size and then snap back.\n\nUse `document.querySelectorAll()` to select all the panels. Then use a function to loop over all the panels, listen for a click, and toggle their classes.\n\nWith another function, listen for the transition end event, check if it includes the word `flex`, and toggle the class of `open-active`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerhynes%2Fflex-panel-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerhynes%2Fflex-panel-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerhynes%2Fflex-panel-gallery/lists"}