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

Function buttonAnimation

assets/js/drumKit.js:80–87  ·  view source on GitHub ↗
(currentkey)

Source from the content-addressed store, hash-verified

78
79// To remove animation on key clicked
80function buttonAnimation(currentkey) {
81 var activeButton = document.querySelector("." + currentkey);
82 activeButton.classList.add("pressed");
83
84 setTimeout(function () {
85 activeButton.classList.remove("pressed");
86 }, 100);
87}
88
89// to change the theme
90

Callers 1

drumKit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected