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

Function buttonAnimation

DrumKit-Extension/index.js:71–81  ·  view source on GitHub ↗
(currentKey)

Source from the content-addressed store, hash-verified

69
70
71function buttonAnimation(currentKey) {
72
73 var activeButton = document.querySelector("." + currentKey);
74
75 activeButton.classList.add("pressed");
76
77 setTimeout(function() {
78 activeButton.classList.remove("pressed");
79 }, 100);
80
81}

Callers 1

index.jsFile · 0.70

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected