https://github.com/fullstackwithlawrence/react-mdr
Matrix digital rain effect for ReactJS
https://github.com/fullstackwithlawrence/react-mdr
Last synced: 6 months ago
JSON representation
Matrix digital rain effect for ReactJS
- Host: GitHub
- URL: https://github.com/fullstackwithlawrence/react-mdr
- Owner: FullStackWithLawrence
- License: mit
- Created: 2021-11-24T00:26:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-27T17:31:57.000Z (about 2 years ago)
- Last Synced: 2025-06-26T19:11:44.284Z (6 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 22
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# [Matrix Digital Rain Effect for ReactJS](https://www.npmjs.com/package/react-mdr) · [](https://github.com/facebook/react/blob/main/LICENSE) [](https://www.npmjs.com/package/react-mdr) [](https://github.com/prettier/prettier) [](https://github.com/lpm0073/react-mdr/pulls)
[](https://lawrencemcdaniel.com)
**React Matrix Digital Rain Effect** gives you your favorite Matrix movie screen effect in the form of a React component. The source originates from an October 2021 blog article written by [Adam Nagy](https://www.youtube.com/c/JavascriptAcademyOfficial), ["Matrix raining code effect using JavaScript"](https://dev.to/javascriptacademy/matrix-raining-code-effect-using-javascript-4hep).
- **Lightweight:** The active code in this repository is less than 100 lines. It uses a canvas for rendering, which should ensure that it is both performant and that it works in most browsers.
- **Use Anywhere:** The `` component tag can be placed anywhere in your jsx return function. It accepts custom classes and responds normally to CSS styling.
### Screenshot

### Screencast
https://user-images.githubusercontent.com/1178819/142886923-3b558b62-9695-42f0-8efc-fc457d361a83.mp4
## Installation
```bash
npm i react-mdr
```
## Code Sample
```jsx
import { MatrixRainingLetters } from "react-mdr";
function Foo() {
return (
);
}
```
## Contributing
Development of React Matrix Digital Rain Effect happens in the open on [GitHub](https://github.com/lpm0073/react-mdr/), and we are grateful to the community for contributing bugfixes and improvements. You can improve it by sending pull requests to [this repository](https://github.com/lpm0073/react-mdr/). Review [this guide](./CONTRIBUTE.md) for the gist of our development process, how to propose bugfixes and improvements.
### License
React Matrix Digital Rain Effect is [MIT licensed](./LICENSE).