# react-matrix-animation

> The matrix falling text effect in React using an HTML canvas

Latest version **0.0.11** (published 2023-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-matrix-animation
pnpm add react-matrix-animation
yarn add react-matrix-animation
bun add react-matrix-animation
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2023-08-07 |
| First published | 2023-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Philip Metzger |
| Maintainers | strange_quirks |
| Keywords | React, Matrix, Effect, Animation, Canvas |

## Links

- npm: https://www.npmjs.com/package/react-matrix-animation
- Repository: https://github.com/philmetzger/react-matrix-animation
- Homepage: https://github.com/philmetzger/react-matrix-animation#readme
- Issues: https://github.com/philmetzger/react-matrix-animation/issues
- npm.io page: https://npm.io/package/react-matrix-animation

## 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

- 0.0.11 (latest) — 2023-08-07
- 0.0.10 — 2023-08-02
- 0.0.9 — 2023-08-01
- 0.0.8 — 2023-08-01
- 0.0.7 — 2023-07-26
- 0.0.6 — 2023-07-26
- 0.0.5 — 2023-07-26
- 0.0.4 — 2023-07-26
- 0.0.3 — 2023-07-26
- 0.0.2 — 2023-07-26
- 0.0.1 — 2023-07-26

## README

# React Matrix Animation

![](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExaWo3NW94eDljaDUxaWlzN3F1ZzNremNiZ2Z2bzIweXJ4eW5mamdtdiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/g1401wFmbiuvhpRB1x/giphy.gif)

Inspired by Christian Behler's post [How to Create the Matrix Text Effect With JavaScript](https://betterprogramming.pub/how-to-create-the-matrix-text-effect-with-javascript-325c6bb7d96e).

## Install

You can install this module as a component from NPM:

```bash
yarn add react-matrix-animation
npm install react-matrix-animation
```

## Usage

```javascript
import { ReactMatrixAnimation } from 'react-matrix-animation';

export default async function Page() {
  return (
    <div className="m-auto flex h-screen w-screen items-center justify-center">
      <ReactMatrixAnimation />
    </div>
  );
}
```

### Options & Defaults

```javascript
// Size of the character elements. Number value.
tileSize = 20

// A higher fade factor will make the characters fade quicker. Number value.
fadeFactor = 0.05

// Background color. Hex value.
backgroundColor = '#030303'

// Font color. Hex value.
fontColor = '#008529'

// the values for the falling tiles. Array of strings. e.g. ["0", "1"]
tileSet = null
```

## Contribution

I appreciate any contributions to this repo! Feel free to get in touch with me [here](https://twitter.com/strange_quirks).

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