{"id":13437422,"url":"https://github.com/keyz/react-atv-img","last_synced_at":"2025-04-03T03:10:15.817Z","repository":{"id":57141773,"uuid":"45332387","full_name":"keyz/react-atv-img","owner":"keyz","description":"A port of @drewwilson’s atvImg (Apple TV 3D parallax effect) library in React.","archived":false,"fork":false,"pushed_at":"2018-03-13T20:01:58.000Z","size":163,"stargazers_count":309,"open_issues_count":4,"forks_count":29,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-24T02:52:54.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://keyanzhang.github.io/react-atv-img","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/keyz.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":"2015-11-01T07:55:06.000Z","updated_at":"2024-10-17T16:27:52.000Z","dependencies_parsed_at":"2022-09-03T07:41:27.673Z","dependency_job_id":null,"html_url":"https://github.com/keyz/react-atv-img","commit_stats":null,"previous_names":["keyanzhang/react-atv-img"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyz%2Freact-atv-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyz%2Freact-atv-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyz%2Freact-atv-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keyz%2Freact-atv-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keyz","download_url":"https://codeload.github.com/keyz/react-atv-img/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916763,"owners_count":20854511,"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-07-31T03:00:56.829Z","updated_at":"2025-04-03T03:10:15.797Z","avatar_url":"https://github.com/keyz.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# react-atv-img\nA port of [@drewwilson](https://github.com/drewwilson)’s amazing [atvImg](https://github.com/drewwilson/atvImg) (Apple TV 3D parallax effect) library in React. It supports both touch and mouse events.\n\n## Install\n`npm install --save react-atv-img`\n\n## Demo\n[http://keyanzhang.github.io/react-atv-img](http://keyanzhang.github.io/react-atv-img)\n\n![GIF](http://i.imgur.com/XxLKcTW.gif)\n\nOr run it locally:\n\n```\ngit clone https://github.com/keyanzhang/react-atv-img/\ncd react-atv-img\nnpm install\nnpm run example\n```\n\nThen navigate to [http://localhost:3000/](http://localhost:3000/)\n\n## API\n### Props\n\n``` javascript\nstatic propTypes = {\n  layers: PropTypes.arrayOf(PropTypes.string).isRequired,\n  isStatic: PropTypes.bool,\n  staticFallback: PropTypes.string,\n  className: PropTypes.string,\n  style: PropTypes.object,\n};\n```\n\n#### Data\n- `layers`: Required. An array of image URLs. The images will be stacked on top of each other and the _last_ element will be at the top.\n- `isStatic`: Optional. A boolean value. When it evaluates to `true`, it disables the parallax effect, and shows the flattened image (`staticFallback`) instead.\n- `staticFallback`: Optional. A flattened image that contains all the layers.\n\n#### Styling: use the following options to set up the width/height of the entire component\n- `className`: Optional.\n- `style`: Optional.\n\n### Example\n\n``` javascript\nimport AtvImg from 'react-atv-img';\n\n\u003cAtvImg\n  layers={[\n    'http://kloc.pm/images/back.png',\n    'http://kloc.pm/images/front.png',\n  ]}\n  staticFallback=\"http://kloc.pm/images/kloc-icon-flattened.jpg\"\n  isStatic={false}\n  className={'thisIsOptional'}\n  style={{ width: 320, height: 190 }}\n/\u003e\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyz%2Freact-atv-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyz%2Freact-atv-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyz%2Freact-atv-img/lists"}