{"name":"react-spring","version":"0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103","keywords":["animated","animation","hooks","motion","react","react-native","spring","typescript","velocity"],"author":{"name":"Paul Henschel"},"license":"MIT","_id":"react-spring@0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103","homepage":"https://github.com/pmndrs/react-spring#readme","bugs":{"url":"https://github.com/pmndrs/react-spring/issues"},"dist":{"shasum":"a144a169a2d5eba8d88e92678db52255d8b7b2ac","tarball":"http://registry-npm.ywwl.com/react-spring/download/react-spring-0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103.tgz","fileCount":6,"integrity":"sha512-7qPxMMM/i/nKo3UVb5dIIpHDeT3Bl5B1GDohXe0X6c2EeUUyID6GLmcRsJTfSj6C5OwMnwNucHb+Lfhe5cv5iA==","signatures":[{"sig":"MEQCIBhH6+fGJWuKd1LkJuiICng0uYybQzWyAmbQ7y1ukZgbAiAu0/wTFwA8U39puCUMN/bWgwDJCnt0AOOwhvG+uREk6g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/GDvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqi1A/7BhfSy3TXtg/8l7TmjtTgAG/ocucY+sixtjsh2K+kQlr/laDq\r\ni3z1UdZUP+BhHO+AILVlxWWqqk3o9Z82jsQ8JD81B5ldXmzqeIe3EoGWjpGj\r\nDVpj/leWNNmsk+inR5C3IEUzl9tRXSTa4Ufj4NtEHWRX5gapw4gVNg+d1Hr2\r\nWU2E6SPtJbGP5nKjvkdmByKGM0+pqJU6Rz4/e868dcniYKZjt2OGDV8WXTrx\r\n3ZXv12IBG/1CzWbxmlvJpTW/kpO1uOgfyX8x2+k4LpaqXjN14+tugAjoX9mf\r\nXdVYtLLQp137e3f6TgpXz/e+V99PqIsQGEnRFVgbtseKqYGDHHhHAWTSdLm7\r\n18MjHlgJe3EhV/KY2xZKkzKl3+b1B1tl95O/iLCeLhffOzzQ+XAhBwv232Lk\r\nWjQKOxVpoOz6WRaiAxrCbqcwiMkIdHHjU4POqX8r2YEA0cSHIEk0lSNpm4A4\r\ni2sF0bymuO0kzB004FPhN7CAoFluMmUowhpEXKbj+OyDL0x+d0gHzdywvQ7z\r\nQUgl+U8PTUjDJ3/Ai9Joq1fD83SxZYQZyy/HuxW8cqQJ3huFB6MYbVOSf+VJ\r\nv4lGsFLQmefA96AWke1+EmvgzrC5Y44JL8k9RJu1ofknr/DjNUdhlYsEq4ul\r\nJ4J6qKRmKYmJrdZrVwcRNlyDTeAsmfBeg3U=\r\n=b6R2\r\n-----END PGP SIGNATURE-----\r\n","size":3070,"noattachment":false,"key":"/react-spring/-/react-spring-0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"b13152991101c4b7adc41eba4f10e8d155511bbe","scripts":{"dev":"tsup","build":"tsup"},"_npmUser":{"name":"tdfka_rick","email":"Joshua.ellis18@gmail.com"},"repository":{"url":"git+https://github.com/pmndrs/react-spring.git","type":"git"},"_npmVersion":"9.3.1","description":"<p align=\"center\">   <img src=\"https://i.imgur.com/QZownhg.png\" width=\"240\" /> </p>","directories":{},"_nodeVersion":"18.14.1","dependencies":{"@react-spring/web":"0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103","@react-spring/core":"0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103","@react-spring/zdog":"0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103","@react-spring/konva":"0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103","@react-spring/three":"0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103","@react-spring/native":"0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.0 || ^17.0.0 || ^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-spring_0.0.0-b13152991101c4b7adc41eba4f10e8d155511bbe-20230227075103_1677484270895_0.8591949247527859","host":"s3://npm-registry-packages"},"readme":"<p align=\"center\">\n  <img src=\"https://i.imgur.com/QZownhg.png\" width=\"240\" />\n</p>\n\n<br />\n\n<h1 align=\"center\">react-spring</h1>\n<h3 align=\"center\">A spring-physics first animation library <br>giving you flexible tools to confidently cast your ideas</h3>\n\n<br>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/react-spring\" target=\"_blank\">\n    <img src=\"https://img.shields.io/npm/v/react-spring.svg?style=flat&colorA=000000&colorB=000000\" />\n  </a>\n  <a href=\"https://www.npmjs.com/package/react-spring\" target=\"_blank\">\n    <img src=\"https://img.shields.io/npm/dm/react-spring.svg?style=flat&colorA=000000&colorB=000000\" />\n  </a>\n  <a href=\"https://discord.gg/ZZjjNvJ\" target=\"_blank\">\n    <img src=\"https://img.shields.io/discord/740090768164651008?style=flat&colorA=000000&colorB=000000&label=discord&logo=discord&logoColor=ffffff\" alt=\"Chat on Discord\">\n  </a>\n</p>\n\n<br>\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<animated.div style={styles} />\n```\n\nJust a small bit about us:\n\n- **Cross-Platform**: We support `react-dom`, `react-native`, `react-three-fiber`, `react-konva` & `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 }) => {\n  const styles = useSpring({\n    opacity: isVisible ? 1 : 0,\n    y: isVisible ? 0 : 24,\n  })\n\n  return <animated.div style={styles}>{children}</animated.div>\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<p align=\"middle\">\n  <img src=\"assets/testimonies.jpg\" />\n</p>\n\n## Used by\n\n<p align=\"middle\">\n  <a href=\"https://nextjs.org/\"><img width=\"285\" src=\"assets/projects/next.png\"></a>\n  <a href=\"https://codesandbox.io/\"><img width=\"285\" src=\"assets/projects/csb.png\"></a>\n  <a href=\"https://aragon.org/\"><img width=\"285\" src=\"assets/projects/aragon.png\"></a>\n</p>\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<a href=\"https://opencollective.com/react-spring#backers\" target=\"_blank\">\n  <img src=\"https://opencollective.com/react-spring/backers.svg?width=890\"/>\n</a>\n\n## Contributors\n\nThis project exists thanks to all the people who contribute.\n\n<a href=\"https://github.com/react-spring/react-spring/graphs/contributors\">\n  <img src=\"https://opencollective.com/react-spring/contributors.svg?width=890\" />\n</a>\n","publish_time":1677484271046,"maintainers":[{"name":"drcmda","email":"drcmda@gmail.com"},{"name":"tdfka_rick","email":"Joshua.ellis18@gmail.com"}],"_cnpm_publish_time":1677484271046,"dist-tags":{"alpha":"9.4.0-alpha.0","beta":"10.0.2-beta.0","deprecated":"0.0.0-deprecated","experimental":"0.0.0-65fc02cc281573bc28d90720983c8e9df9035059-20230625170003","latest":"10.0.4","nightly":"0.0.0-nightly-52cc710-20230626001840"}}