GithubHelp home page GithubHelp logo

rdwz / react-matrix-effect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thedanielmoli/react-matrix-effect

0.0 0.0 1.0 19 KB

A React component displaying a Matrix movie-like effect with a lot of options.

License: Apache License 2.0

JavaScript 100.00%

react-matrix-effect's Introduction

react-matrix-effect npm

react-matrix-effect provides a Matrix React component for a movie-like animation.

Matrix Effect Screenshot

Installation

In order to use the component, you will have to install it first via npm:

npm install --save react-matrix-effect 

Usage

Then, import it in your React app:

import Matrix from 'react-matrix-effect';

Now you can use the component directly inside your Babel HTML template:

<Matrix/>

Options

You may also pass some options to the component:

  • width for the canvas width (number)
  • height for the canvas height (number)
  • fullscreen (boolean, overrides width and height)
  • colSize (number, width of a column)
  • fontSize (number, font size in pixels)
  • color (string, hex font color)
  • frequency (number, float describing frequency of the characters)
  • speed (number)
  • zIndex (number)
  • style (object, passed to the wrapping div)

Examples

<Matrix width={1280} height={720} speed={2} />
<Matrix fullscreen={true} color={'#FF0000'}  />

Default Options

  • width 640px
  • height 480px
  • fullscreen false
  • colSize 11
  • fontSize 13.5
  • color '#00cc33'
  • frequency 0.005
  • speed 1.6

Contributing

Feel free to open an Issue or send me a direct message.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details.

react-matrix-effect's People

Contributors

anton-sn avatar thedanielmoli avatar

Forkers

renovate-bot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.