MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / buttonAnimation

Function buttonAnimation

assets/js/meme_sound.js:138–145  ·  view source on GitHub ↗
(currentkey)

Source from the content-addressed store, hash-verified

136keys.forEach(key => key.addEventListener('transitionend', removeTransition));
137window.addEventListener('keydown', playSound);
138function 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

Callers 1

meme_sound.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected