{"id":18696474,"url":"https://github.com/hermanya/use-3d-effect","last_synced_at":"2026-03-08T09:37:43.692Z","repository":{"id":57387851,"uuid":"175090018","full_name":"Hermanya/use-3d-effect","owner":"Hermanya","description":"🃏React hook that adds the 3D tilt card effect to any component.","archived":false,"fork":false,"pushed_at":"2022-10-06T13:17:29.000Z","size":2553,"stargazers_count":35,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T15:46:21.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hermanya.github.io/use-3d-effect","language":"TypeScript","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/Hermanya.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}},"created_at":"2019-03-11T21:57:38.000Z","updated_at":"2024-09-18T06:48:09.000Z","dependencies_parsed_at":"2022-09-06T11:31:12.508Z","dependency_job_id":null,"html_url":"https://github.com/Hermanya/use-3d-effect","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/Hermanya%2Fuse-3d-effect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fuse-3d-effect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fuse-3d-effect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fuse-3d-effect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermanya","download_url":"https://codeload.github.com/Hermanya/use-3d-effect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248533695,"owners_count":21120141,"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-07T11:19:10.782Z","updated_at":"2026-03-08T09:37:43.626Z","avatar_url":"https://github.com/Hermanya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-3d-effect\n\n\u003e\n\n[![NPM](https://img.shields.io/npm/v/use-3d-effect.svg)](https://www.npmjs.com/package/use-3d-effect) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n![screencast](https://media.giphy.com/media/fLp5ARL1xMwa7XTYQ4/giphy.gif)\n\n[Demo](https://hermanya.github.io/use-3d-effect)\n\n## Install\n\n```bash\nnpm install --save use-3d-effect\n```\n\n## Usage\n\n```tsx\nimport * as React from 'react'\nimport { animated } from 'react-spring';\nimport { use3dEffect } from 'use-3d-effect';\n\nconst Example = () =\u003e {\n  const ref = React.useRef(null);\n  const {style, ...mouseHandlers} = use3dEffect(ref);\n\n  return (\n    \u003canimated.div\n      ref={ref}\n      style={{\n        background: '#61dafb', color: 'white', padding: '2em',\n        ...style\n      }}\n      {...mouseHandlers}\n    \u003e\n      Hover over me!\n    \u003c/animated.div\u003e\n  );\n};\n```\n\n## License\n\nMIT © [Hermanya](https://github.com/Hermanya)\n\n---\n\nThis hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fuse-3d-effect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermanya%2Fuse-3d-effect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fuse-3d-effect/lists"}