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.
40 lines
857 B
CSS
40 lines
857 B
CSS
.storm-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
pointer-events: none;
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
contain: layout paint;
|
|
}
|
|
|
|
.raindrop {
|
|
position: absolute;
|
|
width: 2px;
|
|
height: 40px;
|
|
background: linear-gradient(to bottom, rgba(200, 200, 255, 0), rgba(200, 200, 255, 0.7));
|
|
transform-origin: bottom;
|
|
}
|
|
|
|
@keyframes stormy-rain {
|
|
0% { transform: translateY(-30vh) translateX(0) rotate(20deg); opacity: 0; }
|
|
5% { opacity: 1; }
|
|
95% { opacity: 1; }
|
|
100% { transform: translateY(110vh) translateX(-40vh) rotate(20deg); opacity: 0; }
|
|
}
|
|
|
|
.lightning-flash {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: #fff;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
z-index: 999;
|
|
will-change: opacity;
|
|
}
|