{"id":13546941,"url":"https://github.com/lindelof/react-mouse-particles","last_synced_at":"2025-04-02T19:32:09.650Z","repository":{"id":37271256,"uuid":"228841962","full_name":"lindelof/react-mouse-particles","owner":"lindelof","description":"A mouse particle effect react component","archived":false,"fork":false,"pushed_at":"2021-04-01T03:48:40.000Z","size":6609,"stargazers_count":114,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-15T22:48:06.863Z","etag":null,"topics":["mouse-effect","react-cursor","react-effect","react-mouse","react-particle","react-particles"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/react-mouse-particles-l45h1","language":"JavaScript","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/lindelof.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-12-18T13:05:44.000Z","updated_at":"2024-12-20T05:03:58.000Z","dependencies_parsed_at":"2022-09-04T16:01:48.039Z","dependency_job_id":null,"html_url":"https://github.com/lindelof/react-mouse-particles","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/lindelof%2Freact-mouse-particles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lindelof%2Freact-mouse-particles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lindelof%2Freact-mouse-particles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lindelof%2Freact-mouse-particles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lindelof","download_url":"https://codeload.github.com/lindelof/react-mouse-particles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246880122,"owners_count":20848816,"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":["mouse-effect","react-cursor","react-effect","react-mouse","react-particle","react-particles"],"created_at":"2024-08-01T12:00:48.498Z","updated_at":"2025-04-02T19:32:05.760Z","avatar_url":"https://github.com/lindelof.png","language":"JavaScript","funding_links":[],"categories":["Project","🚀 A series of exquisite and compact web page cool effects"],"sub_categories":["Mouse Effect"],"readme":"# react-mouse-particles\n\n[![NPM](https://img.shields.io/npm/v/react-mouse-particles.svg)](https://www.npmjs.com/package/react-mouse-particles) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n\u003e A mouse particle effect react component\n\nA very fun react library that can be used to create mouse particle effects, which are as cool as meteors or fireballs. I often want to use react to do something fun. Using this component may make your page instantly glorious.\n\n#### Another react particle background animation library is here [https://github.com/lindelof/particles-bg](https://github.com/lindelof/particles-bg)\n\n### Online demo\n* demo(01) [https://codesandbox.io/s/react-mouse-particles-l45h1](https://codesandbox.io/s/react-mouse-particles-l45h1)\n* demo(02) [https://codesandbox.io/s/react-mouse-particles2-4g32z](https://codesandbox.io/s/react-mouse-particles2-4g32z)\n\n![](https://github.com/lindelof/react-mouse-particles/blob/master/image/01.gif?raw=true)\n\n![](https://github.com/lindelof/react-mouse-particles/blob/master/image/02.gif?raw=true)\n\n\n## Install\n\n```bash\nnpm install --save react-mouse-particles\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react'\n\nimport MouseParticles from 'react-mouse-particles'\n\nclass Example extends Component {\n  render () {\n    return (\n      \u003c\u003e\n        \u003cdiv\u003e...\u003c/div\u003e\n        \u003cMouseParticles g={1} color=\"random\" cull=\"col,image-wrapper\"/\u003e\n      \u003c/\u003e\n    )\n  }\n}\n```\n\n## Parameter Description\n```jsx\n\u003cMouseParticles g={1} num={6} color=\"random\" cull=\"stats,image-wrapper\" level={6} /\u003e\n```\n\nkey | describe |type | example\n----|-----|-----|------\n`g` | Whether to add gravity | number | `1`\n`num` | The number of particles emitted each time | number | `3`\n`radius` | The radius of every particle | number | `10`\n`alpha` | The alpha of every particle | number | `.1`\n`tha` | The Particle emitter angle | number | `20`\n`v` | The Particle emitter Particle velocity | number | `0.5`\n`life` | The life of every particle | number | `1.2`\n`color` | Particle color  | array or string | `\u003cMouseParticles g={1} color=\"random\" /\u003e // or \u003cMouseParticles g={1} color={[\"#ff0000\", \"#ccdfs2\"]} /\u003e`\n`cull` | Eliminate dom's className without triggering animation  | string | `\u003cMouseParticles cull=\"container,image-wrapper\" /\u003e`\n`level` | Detect levels of culling animation  | number | `6`\n\n---\n\n## Contribution\nI very much hope that you can work with me to modify the code. I also have a lot of fun ideas. Maybe you can join me to implement it.\n\n## License\n\nhttps://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flindelof%2Freact-mouse-particles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flindelof%2Freact-mouse-particles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flindelof%2Freact-mouse-particles/lists"}