0.0.11 • Published 9 months ago

react-matrix-animation v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

React Matrix Animation

npm.io

Inspired by Christian Behler's post How to Create the Matrix Text Effect With JavaScript.

Install

You can install this module as a component from NPM:

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

Usage

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

// 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.

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago