{"id":29656379,"url":"https://github.com/maxam2017/react-layout-motion","last_synced_at":"2026-01-20T17:30:26.388Z","repository":{"id":301107495,"uuid":"1003968259","full_name":"maxam2017/react-layout-motion","owner":"maxam2017","description":"A small, fast layout animations library for React using the WAAPI","archived":false,"fork":false,"pushed_at":"2025-06-26T15:37:41.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T08:18:44.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-layout-motion.vercel.app","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/maxam2017.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-17T23:23:06.000Z","updated_at":"2025-06-26T15:37:44.000Z","dependencies_parsed_at":"2025-06-25T07:38:17.034Z","dependency_job_id":"49edc3fd-d731-49cf-a71f-d3fbc5e8065c","html_url":"https://github.com/maxam2017/react-layout-motion","commit_stats":null,"previous_names":["maxam2017/react-layout-motion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxam2017/react-layout-motion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Freact-layout-motion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Freact-layout-motion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Freact-layout-motion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Freact-layout-motion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxam2017","download_url":"https://codeload.github.com/maxam2017/react-layout-motion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Freact-layout-motion/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266456259,"owners_count":23931384,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2025-07-22T08:35:01.539Z","updated_at":"2026-01-20T17:30:26.318Z","avatar_url":"https://github.com/maxam2017.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-layout-motion\n\nA small, fast layout animations library for React using the Web Animations API.\n\n\n```bash\nnpm install react-layout-motion\n```\n\n## Basic Usage\n\n```jsx\nimport { Motion } from 'react-layout-motion';\n\nfunction App() {\n  return (\n    \u003cMotion layoutId=\"my-element\"\u003e\n      \u003cdiv\u003eThis element will animate smoothly when its layout changes\u003c/div\u003e\n    \u003c/Motion\u003e\n  );\n}\n```\n\n## API\n\n### Motion Component\n\nThe component for creating layout animations.\n\n#### Props\n\n| Prop | Type | Required | Description |\n| --- | --- | --- | --- |\n| `layoutId` | string | Yes | Unique identifier for the element to track layout changes |\n| `children` | ReactNode | Yes | The content to be animated |\n| `as` | ElementType | No | The HTML element to render (default: \"div\") |\n| `style` | CSSProperties | No | Additional CSS styles |\n| `config` | object | No | Animation configuration |\n| `config.duration` | number | No | Animation duration in milliseconds (default: 300) |\n| `config.easing` | string | No | CSS easing function (default: \"cubic-bezier(0.25, 0.1, 0.25, 1)\") |\n\n## Examples\n\n### Custom Animation Configuration\n\n```jsx\n\u003cMotion \n  layoutId=\"custom-animation\"\n  config={{\n    duration: 500,\n    easing: \"ease-in-out\"\n  }}\n\u003e\n  \u003cdiv\u003eSlower, custom easing animation\u003c/div\u003e\n\u003c/Motion\u003e\n```\n\n\n## Requirements\n\n- React \u003e= 16.8.0\n- Modern browser with Web Animations API support (https://caniuse.com/web-animation)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxam2017%2Freact-layout-motion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxam2017%2Freact-layout-motion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxam2017%2Freact-layout-motion/lists"}