(currentkey)
| 136 | keys.forEach(key => key.addEventListener('transitionend', removeTransition)); |
| 137 | window.addEventListener('keydown', playSound); |
| 138 | function buttonAnimation(currentkey) { |
| 139 | var activeButton = document.querySelector("." + currentkey); |
| 140 | activeButton.classList.add("playing"); |
| 141 | |
| 142 | setTimeout(function () { |
| 143 | activeButton.classList.remove("playing"); |
| 144 | }, 100); |
| 145 | } |
| 146 |