forked from Minecraft/website
Add logo easter egg (#12)
Merge branch 'main' into feature/add-logo-easter-egg Add logo easter egg Co-authored-by: Etzelia <etzelia@hotmail.com> Co-authored-by: Kevin Belisle <kev.belisle@gmail.com> Reviewed-on: https://git.etztech.xyz/BirbMC/birbmc.com/pulls/12 Reviewed-by: Etzelia <etzelia@hotmail.com>main
parent
edcd382cf6
commit
c27ae28a20
|
@ -120,4 +120,9 @@
|
|||
speed: 1000
|
||||
});
|
||||
|
||||
// Easter Eggs
|
||||
document.querySelector("span.logo").addEventListener("dblclick", (e) => {
|
||||
e.currentTarget.classList.toggle("rotated");
|
||||
});
|
||||
|
||||
})(jQuery);
|
|
@ -41,6 +41,10 @@
|
|||
display: block;
|
||||
margin: 0 0 (_size(element-margin) * 0.75) 0;
|
||||
|
||||
&.rotated {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
|
|
Loading…
Reference in New Issue