Template:BibisiLauncher/style.css: Difference between revisions
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
SomebodyRum (talk | contribs) No edit summary |
SomebodyRum (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* Button styling | /* Button styling */ | ||
.launcher-btn { | .launcher-btn { | ||
display: inline-block; | display: inline-block; | ||
| Line 16: | Line 16: | ||
/* -------------------------------------- */ | /* -------------------------------------- */ | ||
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile-container .missile-object { | |||
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile- | |||
visibility: visible; | visibility: visible; | ||
animation: rocket-move 2s cubic-bezier(0.5, 0, 1, 0) forwards; | animation: rocket-move 2s cubic-bezier(0.5, 0, 1, 0) forwards; | ||
} | } | ||
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile- | #mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile-container .smoke { | ||
visibility: visible; | visibility: visible; | ||
animation: smoke-anim 0.8s ease-out infinite; | animation: smoke-anim 0.8s ease-out infinite; | ||
| Line 28: | Line 27: | ||
/* Shuts off the smoke pad completely after the rocket leaves (2s) */ | /* Shuts off the smoke pad completely after the rocket leaves (2s) */ | ||
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile- | #mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile-container .smoke-pad { | ||
animation: hide-pad 2s forwards; | animation: hide-pad 2s forwards; | ||
} | } | ||
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile- | #mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile-container .fire { | ||
visibility: visible; | visibility: visible; | ||
animation: fire-anim 0.4s linear infinite; | animation: fire-anim 0.4s linear infinite; | ||
| Line 43: | Line 42: | ||
/* -------------------------------------- */ | /* -------------------------------------- */ | ||
/* | /* THE INVISIBLE FRAME (Does not move) */ | ||
/* -------------------------------------- */ | /* -------------------------------------- */ | ||
.missile- | .missile-container { | ||
position: fixed; | position: fixed; | ||
bottom: -60px; | bottom: -60px; | ||
| Line 52: | Line 51: | ||
width: 50px; | width: 50px; | ||
height: 50px; | height: 50px; | ||
z-index: 9999; | |||
} | |||
/* -------------------------------------- */ | |||
/* ROCKET & SMOKE CONTAINERS */ | |||
/* -------------------------------------- */ | |||
.missile-object, .smoke-pad { | |||
position: absolute; /* Positions them relative to the invisible frame */ | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
font-size: 50px; | font-size: 50px; | ||
line-height: 50px; | line-height: 50px; | ||
text-align: center; | text-align: center; | ||
visibility: hidden; | visibility: hidden; | ||
} | } | ||
.smoke-pad { | .smoke-pad { | ||
z-index: 9998; /* Keeps smoke behind the rocket */ | z-index: 9998; /* Keeps smoke behind the rocket */ | ||
| Line 80: | Line 91: | ||
} | } | ||
.fire-1 { animation-delay: 0s; } | .fire-1 { animation-delay: 0s; } | ||
.fire-2 { animation-delay: 0.1s; } | .fire-2 { animation-delay: 0.1s; } | ||
| Line 103: | Line 113: | ||
} | } | ||
.smoke-1 { animation-delay: 0s; } | .smoke-1 { animation-delay: 0s; } | ||
.smoke-2 { animation-delay: 0.15s; margin-left: -15px; } | .smoke-2 { animation-delay: 0.15s; margin-left: -15px; } | ||
Revision as of 18:17, 10 April 2026
/* Button styling */
.launcher-btn {
display: inline-block;
padding: 8px 16px;
background: #d33;
color: white;
font-weight: bold;
border-radius: 5px;
cursor: pointer;
user-select: none;
}
.launcher-btn:hover { background: #f44; }
/* -------------------------------------- */
/* TRIGGER ANIMATIONS VIA CUSTOM TOGGLE */
/* -------------------------------------- */
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile-container .missile-object {
visibility: visible;
animation: rocket-move 2s cubic-bezier(0.5, 0, 1, 0) forwards;
}
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile-container .smoke {
visibility: visible;
animation: smoke-anim 0.8s ease-out infinite;
}
/* Shuts off the smoke pad completely after the rocket leaves (2s) */
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile-container .smoke-pad {
animation: hide-pad 2s forwards;
}
#mw-customcollapsible-rocketLaunch:not(.mw-collapsed) ~ .missile-container .fire {
visibility: visible;
animation: fire-anim 0.4s linear infinite;
}
@keyframes hide-pad {
0%, 99% { opacity: 1; visibility: visible; }
100% { opacity: 0; visibility: hidden; }
}
/* -------------------------------------- */
/* THE INVISIBLE FRAME (Does not move) */
/* -------------------------------------- */
.missile-container {
position: fixed;
bottom: -60px;
left: 50%;
margin-left: -25px; /* Centers the 50px width */
width: 50px;
height: 50px;
z-index: 9999;
}
/* -------------------------------------- */
/* ROCKET & SMOKE CONTAINERS */
/* -------------------------------------- */
.missile-object, .smoke-pad {
position: absolute; /* Positions them relative to the invisible frame */
top: 0;
left: 0;
width: 100%;
height: 100%;
font-size: 50px;
line-height: 50px;
text-align: center;
visibility: hidden;
}
.smoke-pad {
z-index: 9998; /* Keeps smoke behind the rocket */
}
@keyframes rocket-move {
0% { transform: translateY(0); }
100% { transform: translateY(-1500px); }
}
/* -------------------------------------- */
/* CONTINUOUS FIRE */
/* -------------------------------------- */
.fire {
position: absolute;
left: 0;
top: 35px; /* Fixed right under the rocket */
width: 50px;
font-size: 30px;
text-align: center;
visibility: hidden;
}
.fire-1 { animation-delay: 0s; }
.fire-2 { animation-delay: 0.1s; }
.fire-3 { animation-delay: 0.2s; }
.fire-4 { animation-delay: 0.3s; }
@keyframes fire-anim {
0% { transform: translateY(0) scale(1); opacity: 1; }
100% { transform: translateY(50px) scale(0); opacity: 0; }
}
/* -------------------------------------- */
/* CONTINUOUS SMOKE */
/* -------------------------------------- */
.smoke {
position: absolute;
left: 0;
top: 10px;
width: 50px;
text-align: center;
visibility: hidden;
}
.smoke-1 { animation-delay: 0s; }
.smoke-2 { animation-delay: 0.15s; margin-left: -15px; }
.smoke-3 { animation-delay: 0.3s; margin-left: 15px; }
.smoke-4 { animation-delay: 0.45s; margin-top: 15px; }
.smoke-5 { animation-delay: 0.6s; margin-left: -5px; }
@keyframes smoke-anim {
0% { transform: scale(0.5); opacity: 1; }
100% { transform: scale(3); opacity: 0; }
}