We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6800f commit 59cbc0fCopy full SHA for 59cbc0f
project-9-dice-roll-simulator/main.js
@@ -1,7 +1,13 @@
1
-
+// ----------
2
3
const buttonEl = document.getElementById("roll-button");
4
5
+const diceEl = document.getElementById("dice");
6
+
7
buttonEl.addEventListener("click", ()=> {
- console.log("Clicked!");
-})
8
+ // console.log("Clicked!");
9
+ diceEl.classList.add("roll-animation");
10
+ setTimeout( () => {
11
+ diceEl.classList.remove("roll-animation");
12
+ }, 1000);
13
+})
0 commit comments