# react-spread-particle-image

> React component to make interact with image into spread particle animation

Latest version **1.0.1** (published 2023-12-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-spread-particle-image
pnpm add react-spread-particle-image
yarn add react-spread-particle-image
bun add react-spread-particle-image
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-12-19 |
| First published | 2023-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.0.0 |
| Dependencies | 0 |
| Unpacked size | 43 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | johnnywang1994 |
| Maintainers | johnnywang |
| Keywords | react, image, spread-animation |

## Links

- npm: https://www.npmjs.com/package/react-spread-particle-image
- Repository: https://github.com/johnnywang1994/react-spread-particle-image
- Homepage: https://github.com/johnnywang1994/react-spread-particle-image#readme
- Issues: https://github.com/johnnywang1994/react-spread-particle-image/issues
- npm.io page: https://npm.io/package/react-spread-particle-image

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-12-19
- 1.0.0 — 2023-12-19

## README

# React Spread Particle Image
React component to make interact with image into spread particle animation, which mainly inspired from This Youtube Video [Recreating The Hover Effect That Shocked Frontend Devs](https://www.youtube.com/watch?v=W78MY7_q_6A)

## Install
```bash
$ npm install react-spread-particle-image
# or
$ yarn add react-spread-particle-image
```

## Usage
### Basic Usage
```tsx
import SpreadParticleImage from 'react-spread-particle-image';

const myCoolImage = 'https://mycdn/mycoolimage.jpg';

const App = () => {
  return (
    <SpreadParticleImage src={myCoolImage} />
  );
};

export default App;
```

### Options
```ts
type Options = {
  quality?: number; // default: 4, image quality to determine the particle DIAMETER
  radius?: number; // default: 50, hover circle radius
  forceSpeed?: number; // default: 5, speed of particle leaving your touch point
  returnSpeed?: number; // default: 0.1, speed of particle returning to it's original point
};
```

## License
Licensed under the MIT License, Copyright © 2023-present Johnny Wang [johnnywang1994](https://github.com/johnnywang1994).

---
_Source: https://npm.io/package/react-spread-particle-image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
