Add spooky easter egg ;)

This commit is contained in:
Alexandre Aubin 2021-10-20 13:40:43 +02:00
parent fade9afe97
commit 2c5062bebe
3 changed files with 19 additions and 0 deletions

View file

@ -158,6 +158,11 @@ export default {
if (today.getDate() === 1 && today.getMonth() + 1 === 4) {
this.$store.commit('SET_SPINNER', 'magikarp')
}
// Halloween easter egg ;)
if (today.getDate() === 31 && today.getMonth() + 1 === 10) {
this.$store.commit('SET_SPINNER', 'spookycat')
}
}
}
</script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

View file

@ -104,5 +104,19 @@ export default {
99% { transform: scale(-1, 1); margin-left: 0;}
}
}
&.spookycat {
height: 40px;
width: 65px;
background-image: url('../../assets/spinners/spookycat.gif');
animation-name: back-and-forth-spookycat;
@keyframes back-and-forth-spookycat {
0%, 100% { transform: scale(1, 1); margin-left: 0; }
49% { transform: scale(1, 1); margin-left: calc(100% - 100px);}
50% { transform: scale(-1, 1); margin-left: calc(100% - 100px);}
99% { transform: scale(-1, 1); margin-left: 0;}
}
}
}
</style>