A fun interactive drum kit built with vanilla JavaScript. Press keys on your keyboard or click the buttons to play drum sounds!
- πΉ 9 Drum Sounds - Clap, Hi-hat, Kick, Openhat, Boom, Ride, Snare, Tom, and Tink
- β¨οΈ Keyboard Support - Press A, S, D, F, G, H, J, K, L to play sounds
- π± Mobile Friendly - Click/tap buttons to play on touch devices
- β¨ Visual Feedback - Keys animate when played
- π Rapid Fire - Play multiple sounds simultaneously
-
Open
index-FINISHED.htmlin your web browser -
Press keyboard keys A through L to play different drum sounds:
- A - Clap
- S - Hi-hat
- D - Kick
- F - Open Hat
- G - Boom
- H - Ride
- J - Snare
- K - Tom
- L - Tink
-
Or click/tap the drum pads directly on the screen
βββ index-FINISHED.html # Main HTML file
βββ style.css # Styling and animations
βββ sounds/ # Audio files folder
β βββ clap.wav
β βββ hihat.wav
β βββ kick.wav
β βββ openhat.wav
β βββ boom.wav
β βββ ride.wav
β βββ snare.wav
β βββ tom.wav
β βββ tink.wav
βββ README.md # This file
- HTML5 - Audio elements and structure
- CSS3 - Styling and key animations
- Vanilla JavaScript - Event handling and audio playback
Works on all modern browsers that support:
- HTML5 Audio API
- ES6 JavaScript
- CSS3 Transforms
- Sounds play with visual feedback (key scale animation)
- Multiple keys can be pressed simultaneously
- Audio resets on each keystroke for rapid playback
Enjoy making beats! π΅