{"id":24296683,"url":"https://github.com/sr-tamim/react-motion-particles","last_synced_at":"2026-05-08T02:20:08.285Z","repository":{"id":215772784,"uuid":"739754921","full_name":"sr-tamim/react-motion-particles","owner":"sr-tamim","description":"A React component library for creating interactive motion particles effects based on mouse movements or device movement.","archived":false,"fork":false,"pushed_at":"2024-02-01T17:16:06.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T01:18:17.816Z","etag":null,"topics":["motion-particles","mousemove","particlesjs","react","react-motion","react-motion-particles","reactjs","wensyve"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@wensyve/react-motion-particles","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/sr-tamim.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}},"created_at":"2024-01-06T12:54:42.000Z","updated_at":"2024-09-07T14:34:12.000Z","dependencies_parsed_at":"2024-02-01T19:08:30.719Z","dependency_job_id":null,"html_url":"https://github.com/sr-tamim/react-motion-particles","commit_stats":null,"previous_names":["sr-tamim/react-motion-particles"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Freact-motion-particles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Freact-motion-particles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Freact-motion-particles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Freact-motion-particles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr-tamim","download_url":"https://codeload.github.com/sr-tamim/react-motion-particles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242172346,"owners_count":20083752,"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":["motion-particles","mousemove","particlesjs","react","react-motion","react-motion-particles","reactjs","wensyve"],"created_at":"2025-01-16T19:41:31.181Z","updated_at":"2026-05-08T02:20:03.231Z","avatar_url":"https://github.com/sr-tamim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @wensyve/react-motion-particles\n\nA React component library for creating interactive motion particles effects based on mouse movements or device movement.\n\n## Installation\n\nYou can install this package using npm or yarn:\n\n```sh\nnpm install @wensyve/react-motion-particles\n```\n\n```sh\nyarn add @wensyve/react-motion-particles\n```\n\n## Usage\nFirst, import the `MotionParticlesContainer` and `MotionParticle` components:\n\n```js\nimport { MotionParticlesContainer, MotionParticle } from '@wensyve/react-motion-particles';\n```\n\nThen, wrap the `MotionParticle` components with the `MotionParticlesContainer` component:\n\n```js\n\u003cMotionParticlesContainer\u003e\n    \u003cMotionParticle motionSpeed={2.5}\u003e\n        \u003cdiv\u003e{/* Your content */}\u003c/div\u003e\n    \u003c/MotionParticle\u003e\n    \u003cMotionParticle motionSpeed={1}\u003e\n        \u003cdiv\u003e{/* Your content */}\u003c/div\u003e\n    \u003c/MotionParticle\u003e\n\u003c/MotionParticlesContainer\u003e\n```\n\nEach `MotionParticle` child of `MotionParticlesContainer` will move based on mouse movements or device movement. The `motionSpeed` prop determines the speed of the movement. The higher the value, the faster the movement.\n\nNegative `motionSpeed` values will move the MotionParticle in the opposite direction of the mouse movement or device movement.\n\nYou can also use the `MotionParticlesContainer` at the root of your react app and then you can use the `MotionParticle` component anywhere in your app.\n\n```js\n// App.js file\nimport React from 'react';\nimport MotionParticlesContainer from '@wensyve/react-motion-particles';\n\nfunction App() {\n    return (\n        \u003cMotionParticlesContainer\u003e\n            \u003cdiv className=\"app\"\u003e\n                {/* Your content */}\n            \u003c/div\u003e\n        \u003c/MotionParticlesContainer\u003e\n    );\n}\n\nexport default App;\n```\n\n```js\n// SomeOtherComponent.js file\nimport React from 'react';\nimport { MotionParticle } from '@wensyve/react-motion-particles';\n\nfunction SomeOtherComponent() {\n    return (\n        \u003cdiv\u003e\n            \u003cMotionParticle motionSpeed={2.5}\u003e\n                \u003cdiv\u003e{/* Your content */}\u003c/div\u003e\n            \u003c/MotionParticle\u003e\n            \u003cMotionParticle motionSpeed={1}\u003e\n                \u003cdiv\u003e{/* Your content */}\u003c/div\u003e\n            \u003c/MotionParticle\u003e\n        \u003c/div\u003e\n    );\n}\n```\n\n\n## Contributing\nContributions are welcome! Feel free to open an issue or submit a pull request if you have a way to improve this project.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Author\n[![sr-tamim's Profilator](https://profilator.deno.dev/sr-tamim?v=1.0.0.alpha.4)](https://github.com/sr-tamim)\n\n## Contributors\n![Contributors](https://contrib.rocks/image?repo=sr-tamim/react-motion-particles)\n\n#### Powered by [WENSYVE](https://wensyve.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-tamim%2Freact-motion-particles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr-tamim%2Freact-motion-particles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-tamim%2Freact-motion-particles/lists"}