A dynamic, neon-styled, glow-animated virtual piano you can play using your keyboard.
👉 Play Now
- 🎧 40+ interactive sound keys
- ⚡ Real-time keyboard + mouse sound trigger
- 🎥 Full-screen video background
- 🌈 Neon glow animations for every key press
- 🧊 Glass-blur transparent key UI
- 🧠 Dynamically generated piano keys (no manual HTML)
- 🚀 Ultra-smooth performance (no libraries used)
- HTML5
- CSS3 / SCSS
- JavaScript (Vanilla)
- MP3 Audio Engine
Each keyboard key (A–Z, 0–9) mapped to mp3 files:
KeyA → ./audio/28.mp3
KeyB → ./audio/29.mp3
KeyC → ./audio/30.mp3
...
Digit0 → ./audio/60.mp3
keypress → detect key → load audio → play() → glow animation → reset
Dynamic key creation:
keys.forEach(code => {
let div = document.createElement("div");
div.className = "key";
piano.appendChild(div);
});📦 DOM-Virtual-Piano
┣ 📂 audio/
┃ ┗ 28.mp3 – 60.mp3
┣ 📜 index.html
┣ 📜 style.css
┣ 📜 style.scss
┗ 📜 script.js
Open this file:
index.html
No installation required.
PRs are welcome.
Improve animations, add new sound packs, add dark mode, or convert to PWA.
Vikas Kumar
Released under the MIT License.