Skip to content

Commit 800330e

Browse files
committed
Add thunder to the big one
1 parent 927e287 commit 800330e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const eventsTable = [
124124
{
125125
onCount: 69,
126126
action: () => {
127+
// TODO: add this sound here https://www.youtube.com/watch?v=3WAOxKOmR90
127128
clickMe.disabled = true;
128129
clickMeText.innerText = `Nice!`;
129130
playFart(critFart);
@@ -137,7 +138,17 @@ const eventsTable = [
137138
onCount: 100,
138139
action: () => {
139140
clickMe.disabled = true;
140-
setTimeout(() => clickMe.disabled = false, 3000);
141+
setTimeout(() => {
142+
clickMe.disabled = false;
143+
critImg.animate([
144+
{ opacity: 0 },
145+
{ opacity: 1 },
146+
{ opacity: 0 }
147+
], {
148+
duration: 1000,
149+
fill: "forwards"
150+
});
151+
}, 3000);
141152
clickMeText.innerText = `HERE COMES THE BIG ONE`;
142153
playFart(bigoneFart);
143154
}

0 commit comments

Comments
 (0)