Skip to content

Commit bc0d1c7

Browse files
authored
Merge pull request #3 from Zenor27/main
add custom emoji for cursor
2 parents 52ce080 + db549fe commit bc0d1c7

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

CREDITS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
Fart sounds:
22
- https://pixabay.com/sound-effects/search/fart/
3+
4+
Peach emoji:
5+
- https://en.wikipedia.org/wiki/Peach_emoji

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ const eventsTable = [
6565
onCount: 15,
6666
action: () => {
6767
clickMeText.innerText = `having fun?`;
68+
clickMeWrapper.classList.add("customCursor");
69+
clickMe.classList.add("customCursor");
6870
playFart(regularFart);
6971
}
7072
},

main.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@
3333
transform: translate(-25%, -50%);
3434
font-size: 48px;
3535
}
36+
.customCursor {
37+
cursor: url("peach-emoji.png"), auto;
38+
}

peach-emoji.png

1.44 KB
Loading

0 commit comments

Comments
 (0)