Skip to content

dev-hamza03/matrix-text-effect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎚 Matrix Text Effect

A Matrix style text decode and scramble animation built with plain HTML CSS and JavaScript. Hover the text to see a cybernetic scramble that decodes back into the original text. Great for hero sections interactive UI demos and learning DOM animation techniques.

🌐 Live Demo

https://dev-hamza03.github.io/matrix-text-effect/

📁 GitHub Repository

https://dev-hamza03.github.io/matrix-text-effect/

✨ Features

  • Matrix style text scramble and decode animation
  • Hover to scramble then reveal original text
  • Pure HTML CSS and JavaScript no libraries
  • Lightweight responsive and easy to customize
  • Great for portfolio demos headers and UI experiments

🖼️ Screenshot

(Upload a screenshot to assets/images/screenshot.png then update the file) Screenshot

🛠 Technologies Used

HTML5 SCSS JavaScript (Vanilla)

📂 Project Structure

matrix-text-effect
├── index.html
├── style.css
├── script.js
└── assets
    └── images

🚀 Installation (Clone This Project)

git clone https://github.com/dev-hamza03/matrix-text-effect

Then open index.html in your browser

💡 How It Works

  1. The original text is stored in JavaScript
  2. On hover a timed interval replaces characters with random letters
  3. Iteration advances to progressively restore original characters
  4. The interval is cleared when the text is fully decoded

📜 Example Core Logic (for reference)

document.addEventListener("mouseenter", ...) updates text by mapping each character to either the original character or a random character until the full text is restored

🔧 Customization Tips

  • Change the character set in script.js to adjust scramble style
  • Modify timing interval for faster or slower decode
  • Add color glow or CSS animation to enhance the Matrix vibe
  • Use different fonts or letter spacing for stronger aesthetic

🔮 Future Enhancements

  • Mobile touch support
  • Configurable speed and character sets via data attributes
  • Recording or replay option for animations
  • Multiple concurrent text elements support

⭐ Support

If you like this project please star the repository ⭐ Your support helps me create more UI experiments

📜 License

This project is open source and free to use

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published