Skip to content

Commit c4e50c7

Browse files
committed
Larger cheese
1 parent 15c6e99 commit c4e50c7

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

src/chat/interface/commands/index.js

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,8 @@ com.cheeseStorm = function () {
631631
element: "img",
632632
src: "images/commands/cheese.png",
633633
style: {
634-
height: "32px",
634+
height: "64px",
635+
transform: `rotate(${Math.random() * 45 * 2 - 45}deg)`,
635636
},
636637
},
637638
],
@@ -653,18 +654,37 @@ com.cheeseStorm = function () {
653654
}
654655
);
655656
startAnimation.onfinish = function () {
657+
var clickable = true;
656658
var timeout = setTimeout(() => {
657-
cheeseDiv.remove();
659+
clickable = false;
660+
cheeseDiv.children[0].animate(
661+
[
662+
{},
663+
{
664+
scale: 0,
665+
opacity: 0,
666+
},
667+
],
668+
{
669+
duration: 100,
670+
easing: "ease-out",
671+
}
672+
).onfinish = () => {
673+
cheeseDiv.remove();
674+
};
658675
}, 2500);
659676
cheeseDiv.addEventListener("click", () => {
677+
if (!clickable) {
678+
return;
679+
}
660680
cheeseDiv.style.pointerEvents = "none";
661681
clearTimeout(timeout);
662682
elements.setInnerJSON(cheeseDiv, [
663683
{
664684
element: "span",
665685
style: {
666686
fontFamily: "PressStart2PRegular",
667-
fontSize: "10px",
687+
fontSize: "20px",
668688
fontWeight: "bold",
669689
},
670690
textContent: "+1 Cheese",

wpstatic/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"timestamp":"1761237581947"}
1+
{"timestamp":"1761238376626"}

0 commit comments

Comments
 (0)