Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix Falling Code Effect 🌌

This project recreates the Matrix-style falling code effect using HTML, CSS, and JavaScript. No images or external libraries are used—just pure web technologies!


🎥 Demo

Experience the effect live by opening the index.html file in any modern browser.


📁 Project Structure

The project contains the following files:

matrix-falling-code/
│
├── index.html   # Main HTML file with the <canvas> element
├── matrix.js    # JavaScript file for the animation logic
└── README.md    # Project documentation

🚀 Getting Started

Follow these steps to run the project locally:

  1. Clone the repository:

    git clone https://github.com/andresz74/matrix.git
    cd matrix
  2. Open the HTML file: Open index.html in your preferred web browser.

  3. Enjoy the animation: Watch the Matrix-like code rain effect.


🛠️ How It Works

  1. A <canvas> element is used to render characters dynamically.
  2. The JavaScript file (matrix.js) generates random characters and animates their fall using:
    • Green text with a trailing effect.
    • A smooth animation loop using requestAnimationFrame.
  3. The CSS ensures a black background and full-screen canvas.

🎨 Customization

You can customize the following settings in matrix.js:

  • Characters: Modify the matrixChars string to use different symbols.
  • Font Size: Adjust the fontSize variable to increase or decrease the text size.
  • Speed: Change the drop speed by tweaking the Math.random() threshold.

🌟 Preview Screenshot

Matrix Code Effect


📄 License

This project is open-source and available under the MIT License.


💬 Feedback & Contributions

  • Contributions: Feel free to fork the project and submit pull requests.
  • Feedback: If you encounter issues or have suggestions, open an issue or reach out.

🔗 Author

Andres Zenteno
GitHub: @andresz74

About

My Home Page

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages