All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 45s
- Introduced new CSS and JS files for Pi Day, Pride, Rain, and Storm effects. - Updated existing seasonal styles (e.g., Halloween, Hearts, Resurrection) to improve performance with 'contain: layout paint'. - Enhanced animations for seasonal effects, including adjustments to keyframes and element creation logic. - Added configuration options for new effects in the main seasonals.js file. - Updated test-site.html to include new seasonal options in the dropdown.
61 lines
1.0 KiB
CSS
61 lines
1.0 KiB
CSS
.resurrection-container {
|
|
display: block;
|
|
position: fixed;
|
|
overflow: hidden;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 10;
|
|
contain: layout paint;
|
|
}
|
|
|
|
.resurrection-symbol {
|
|
position: fixed;
|
|
z-index: 15;
|
|
top: -15%;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
cursor: default;
|
|
animation-name: resurrection-fall, resurrection-sway;
|
|
animation-timing-function: linear, ease-in-out;
|
|
animation-iteration-count: infinite, infinite;
|
|
will-change: transform, top;
|
|
}
|
|
|
|
.resurrection-symbol img {
|
|
z-index: 15;
|
|
height: auto;
|
|
width: 56px;
|
|
opacity: 0.95;
|
|
filter: drop-shadow(0 0 8px rgba(255, 215, 130, 0.5));
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.resurrection-symbol img {
|
|
width: 42px;
|
|
}
|
|
}
|
|
|
|
@keyframes resurrection-fall {
|
|
0% {
|
|
top: -15%;
|
|
}
|
|
|
|
100% {
|
|
top: 110%;
|
|
}
|
|
}
|
|
|
|
@keyframes resurrection-sway {
|
|
0%,
|
|
100% {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateX(65px);
|
|
}
|
|
}
|