{"id":13400621,"url":"https://github.com/pmndrs/react-spring","last_synced_at":"2025-05-12T14:57:06.700Z","repository":{"id":37265143,"uuid":"124257233","full_name":"pmndrs/react-spring","owner":"pmndrs","description":"✌️ A spring physics based React animation library","archived":false,"fork":false,"pushed_at":"2025-05-05T09:51:25.000Z","size":675894,"stargazers_count":28651,"open_issues_count":121,"forks_count":1206,"subscribers_count":192,"default_branch":"next","last_synced_at":"2025-05-05T13:56:34.725Z","etag":null,"topics":["animation-library","react","react-spring","spring-physics","springs"],"latest_commit_sha":null,"homepage":"http://www.react-spring.dev/","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/pmndrs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"open_collective":"react-spring","github":"joshuaellis"}},"created_at":"2018-03-07T15:39:32.000Z","updated_at":"2025-05-05T11:18:04.000Z","dependencies_parsed_at":"2024-01-18T03:17:25.707Z","dependency_job_id":"ac81c9cf-bb0b-4e6e-88ef-e2eb34fcd603","html_url":"https://github.com/pmndrs/react-spring","commit_stats":{"total_commits":3200,"total_committers":199,"mean_commits":16.08040201005025,"dds":0.5378125,"last_synced_commit":"3d2523de0f879e20869ab9add907540188bf6446"},"previous_names":["react-spring/react-spring","drcmda/react-spring"],"tags_count":290,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmndrs%2Freact-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmndrs%2Freact-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmndrs%2Freact-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmndrs%2Freact-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmndrs","download_url":"https://codeload.github.com/pmndrs/react-spring/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252612469,"owners_count":21776255,"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-library","react","react-spring","spring-physics","springs"],"created_at":"2024-07-30T19:00:54.004Z","updated_at":"2025-05-12T14:57:06.673Z","avatar_url":"https://github.com/pmndrs.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/QZownhg.png\" width=\"240\" /\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003ch1 align=\"center\"\u003ereact-spring\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eA spring-physics first animation library \u003cbr\u003egiving you flexible tools to confidently cast your ideas\u003c/h3\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-spring\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/react-spring.svg?style=flat\u0026colorA=000000\u0026colorB=000000\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-spring\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/react-spring.svg?style=flat\u0026colorA=000000\u0026colorB=000000\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://discord.gg/AXfNsGx64f\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/discord/740090768164651008?style=flat\u0026colorA=000000\u0026colorB=000000\u0026label=discord\u0026logo=discord\u0026logoColor=ffffff\" alt=\"Chat on Discord\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n`react-spring` is a cross-platform spring-physics first animation library.\n\nIt's as simple as:\n\n```jsx\nconst styles = useSpring({\n  from: {\n    opacity: 0\n  },\n  to: {\n    opacity: 1\n  }\n})\n\n\u003canimated.div style={styles} /\u003e\n```\n\nJust a small bit about us:\n\n- **Cross-Platform**: We support `react-dom`, `react-native`, `react-three-fiber`, `react-konva` \u0026 `react-zdog`.\n- **Versatile**: Be declarative with your animations or if you prefer, imperative.\n- **Spring-Physics First**: By default animation use springs for fluid interactivity, but we support durations with easings as well.\n\nThere's a lot more to be had! Give it a try and find out.\n\n## Getting Started\n\n### ⚡️ Jump Start\n\n```shell\n# Install the entire library\nnpm install react-spring\n# or just install your specific target (recommended)\nnpm install @react-spring/web\n```\n\n```jsx\nimport { animated, useSpring } from '@react-spring/web'\n\nconst FadeIn = ({ isVisible, children }) =\u003e {\n  const styles = useSpring({\n    opacity: isVisible ? 1 : 0,\n    y: isVisible ? 0 : 24,\n  })\n\n  return \u003canimated.div style={styles}\u003e{children}\u003c/animated.div\u003e\n}\n```\n\nIt's as simple as that to create scroll-in animations when value of `isVisible` is toggled.\n\n### 📖 Documentation and Examples\n\nMore documentation on the project can be found [here](https://www.react-spring.io).\n\nPages contain their own [examples](https://react-spring.io/hooks/use-spring#demos) which you can check out there, or [open in codesandbox](https://codesandbox.io/s/github/pmndrs/react-spring/tree/main/demo/src/sandboxes/card) for a more in-depth view!\n\n---\n\n## 📣 What others say\n\n\u003cp align=\"middle\"\u003e\n  \u003cimg src=\"assets/testimonies.jpg\" /\u003e\n\u003c/p\u003e\n\n## Used by\n\n\u003cp align=\"middle\"\u003e\n  \u003ca href=\"https://nextjs.org/\"\u003e\u003cimg width=\"285\" src=\"assets/projects/next.png\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codesandbox.io/\"\u003e\u003cimg width=\"285\" src=\"assets/projects/csb.png\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://aragon.org/\"\u003e\u003cimg width=\"285\" src=\"assets/projects/aragon.png\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nAnd [many others...](https://github.com/pmndrs/react-spring/network/dependents)\n\n## Backers\n\nThank you to all our backers! 🙏 If you want to join them here, then consider contributing to our [Opencollective](https://opencollective.com/react-spring).\n\n\u003ca href=\"https://opencollective.com/react-spring#backers\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://opencollective.com/react-spring/backers.svg?width=890\"/\u003e\n\u003c/a\u003e\n\n## Contributors\n\nThis project exists thanks to all the people who contribute.\n\n\u003ca href=\"https://github.com/react-spring/react-spring/graphs/contributors\"\u003e\n  \u003cimg src=\"https://opencollective.com/react-spring/contributors.svg?width=890\" /\u003e\n\u003c/a\u003e\n","funding_links":["https://opencollective.com/react-spring","https://github.com/sponsors/joshuaellis"],"categories":["Animations","Uncategorized","TypeScript","十一、动画与交互","UI Animation","Frontend React","前端开发框架及项目","Animations (CSS, JS)","Awesome Tools","React tools","Libraries","React [🔝](#readme)","📖 Categories","UI Components / UI Tools"],"sub_categories":["Uncategorized","3.  Immutable 工具（辅助状态管理）","Syntax highlighting","Animation","其他_文本生成、文本对话","Languages","JavaScript","Graphics \u0026 Animations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmndrs%2Freact-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmndrs%2Freact-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmndrs%2Freact-spring/lists"}