{"id":16907986,"url":"https://github.com/timc1/react-fullscreen-image","last_synced_at":"2025-03-22T10:31:21.076Z","repository":{"id":52178110,"uuid":"178625911","full_name":"timc1/react-fullscreen-image","owner":"timc1","description":"An accessible, fast, and snappy fullscreen React image viewer.","archived":false,"fork":false,"pushed_at":"2021-04-29T03:39:28.000Z","size":18815,"stargazers_count":35,"open_issues_count":4,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T10:21:38.316Z","etag":null,"topics":["animation","css","dom","hooks","javascript","react"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/timc1.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":"2019-03-31T00:32:50.000Z","updated_at":"2024-07-13T18:09:18.000Z","dependencies_parsed_at":"2022-08-24T04:01:01.393Z","dependency_job_id":null,"html_url":"https://github.com/timc1/react-fullscreen-image","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timc1%2Freact-fullscreen-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timc1%2Freact-fullscreen-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timc1%2Freact-fullscreen-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timc1%2Freact-fullscreen-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timc1","download_url":"https://codeload.github.com/timc1/react-fullscreen-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244943769,"owners_count":20536290,"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":["animation","css","dom","hooks","javascript","react"],"created_at":"2024-10-13T18:49:41.236Z","updated_at":"2025-03-22T10:31:20.170Z","avatar_url":"https://github.com/timc1.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  React Fullscreen Image\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  🔲\n  \u003c/p\u003e\n\u003cp align=\"center\" style=\"font-size: 1.5rem;\"\u003e\n  A simple, fast, and beautiful fullscreen React image viewer using CSS transforms \u0026 opacity.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/timc1/react-fullscreen-image/raw/master/demo.gif\" alt=\"demo\" /\u003e\n\u003c/p\u003e\n\nYou've got a list of images that you want to allow users to click and expand into fullscreen mode.\n\nReact Fullscreen Image is a tiny library to render images that animate to fullscreen view when\nclicked.\n\nA live demo can be viewed on [CodeSandbox](https://codesandbox.io/s/o9m59jj3oq)!\n\n## Features\n\n- Only animates transform and opacity properties.\n- Keyboard event handlers (escape key, left/right arrow navigation).\n- Handles outer click — anywhere outside of image when clicked will zoom image to its original\n  position.\n- Scrolling (with requestAnimationFrame) to a set boundary will zoom image to its original position.\n\n## Usage\n\nReact Fullscreen Image uses [compound components](https://kentcdodds.com/blog/compound-components-with-react-hooks). All `\u003cImage /\u003e` components nested within an `\u003cImageGroup /\u003e` will be navigatable when in fullscreen mode.\n\n```jsx\nimport { ImageGroup, Image } from 'react-fullscreen-image'\n\nconst images = [\n  'some_image_url',\n  'some_image_url',\n  'some_image_url',\n  'some_image_url'\n]\n\nexport default function App() {\n  return (\n    \u003cImageGroup\u003e\n      \u003cul className=\"images\"\u003e\n        {images.map(i =\u003e (\n          \u003cli key={i}\u003e\n            \u003cImage\n              src={i}\n              alt=\"nature\"\n            /\u003e\n          \u003c/li\u003e\n        ))}\n      \u003c/ul\u003e\n    \u003c/ImageGroup\u003e\n  )\n}\n```\n\n## Installation\n\n```jsx\ngit clone https://github.com/timc1/react-fullscreen-image.git\n\ncd react-fullscreen-image/example\n\nyarn install\n\nyarn start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimc1%2Freact-fullscreen-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimc1%2Freact-fullscreen-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimc1%2Freact-fullscreen-image/lists"}