Add Oktoberfest feature: implement CSS and JS for Oktoberfest animations and visibility control

This commit is contained in:
CodeDevMLH
2026-02-24 19:22:57 +01:00
parent 97dbc09daa
commit 22d40fb248
2 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
.oktoberfest-container {
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
contain: strict;
overflow: hidden;
}
.oktoberfest-symbol {
position: absolute;
top: -10%;
font-size: 2.2em;
user-select: none;
animation-name: oktoberfest-fall, oktoberfest-sway;
animation-timing-function: linear, ease-in-out;
animation-iteration-count: infinite, infinite;
}
@keyframes oktoberfest-fall {
0% { transform: translateY(0); opacity: 0; }
10% { opacity: 1; }
100% { transform: translateY(120vh); opacity: 1; }
}
@keyframes oktoberfest-sway {
0%, 100% { margin-left: 0; }
50% { margin-left: 50px; }
}