diff --git a/Javascript/Virtual Mirror/README.md b/Javascript/Virtual Mirror/README.md new file mode 100644 index 0000000..0d25220 --- /dev/null +++ b/Javascript/Virtual Mirror/README.md @@ -0,0 +1,33 @@ +# πŸͺž Webcam Mirror β€” JavaScript Demo + +A lightweight web app that uses your device’s **webcam** and flips the video feed **horizontally**, so it behaves just like a real mirror. +Built with plain **HTML**, **CSS**, and **JavaScript** β€” no frameworks required. + +--- + +## πŸ“Έ Features + +- πŸ” **Real mirror effect** β€” flips the camera preview horizontally. +- πŸŽ₯ **Camera selection** β€” choose between multiple cameras (front/back on mobile). +- πŸ–ΌοΈ **Snapshot capture** β€” take photos that respect the mirror orientation. +- πŸ’Ύ **Instant download** β€” download your mirrored photo as a `.png` file. +- βš™οΈ **Toggle mirroring** β€” turn the mirror effect on or off anytime. +- πŸŒ— **Dark UI** β€” modern, clean, and responsive design. + +--- + +## πŸš€ Live Demo + +You can run this app locally by opening the HTML file directly in a browser that supports **`getUserMedia()`** (most modern browsers). + +--- + +## 🧠 How It Works + +The app uses the **WebRTC API** (`navigator.mediaDevices.getUserMedia`) to access your webcam stream and display it in a `