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
klutz 2020-10-30 04:45:49 +01:00 committed by Etzelia
parent edcd382cf6
commit c27ae28a20
2 changed files with 91 additions and 82 deletions

View File

@ -120,4 +120,9 @@
speed: 1000 speed: 1000
}); });
// Easter Eggs
document.querySelector("span.logo").addEventListener("dblclick", (e) => {
e.currentTarget.classList.toggle("rotated");
});
})(jQuery); })(jQuery);

View File

@ -41,6 +41,10 @@
display: block; display: block;
margin: 0 0 (_size(element-margin) * 0.75) 0; margin: 0 0 (_size(element-margin) * 0.75) 0;
&.rotated {
transform: rotate(360deg);
}
img { img {
display: block; display: block;
margin: 0 auto; margin: 0 auto;