MCPcopy Create free account
hub / github.com/codemistic/Web-Development / buttonAnimation

Function buttonAnimation

Drum kit Challenge/index.js:66–75  ·  view source on GitHub ↗
(currentKey)

Source from the content-addressed store, hash-verified

64}
65
66function buttonAnimation(currentKey) {
67
68 var activeButton = document.querySelector("." + currentKey);
69
70 activeButton.classList.add("pressed");
71
72 setTimeout(function() {
73 activeButton.classList.remove("pressed");
74 }, 100);
75}

Callers 2

gotClickedFunction · 0.70
index.jsFile · 0.70

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected