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: | ||
/* ============================== | /* ============================== | ||
BIBISI LAUNCHER CSS | BIBISI LAUNCHER CSS | ||
Click-to-launch via | Click-to-launch via :focus | ||
============================== */ | ============================== */ | ||
.rocket-wrapper { | .rocket-wrapper { | ||
display: block; | display: inline-block; | ||
text-align: center; | text-align: center; | ||
height: 0; | height: 0; | ||
overflow: visible; | overflow: visible; | ||
position: relative; | position: relative; | ||
cursor: pointer; | cursor: pointer; | ||
outline: none; /* Removes | outline: none; /* Removes the blue highlight ring when clicked */ | ||
} | } | ||
| Line 36: | Line 28: | ||
} | } | ||
/* Triggered when | /* Triggered when clicked (receives focus) */ | ||
.rocket-wrapper | .rocket-wrapper:focus .rocket, | ||
.rocket-wrapper:active .rocket { | |||
animation: rocket-fly 3s cubic-bezier(0.2, 0, 0.8, 1) forwards; | animation: rocket-fly 3s cubic-bezier(0.2, 0, 0.8, 1) forwards; | ||
} | } | ||
.rocket-wrapper | .rocket-wrapper:focus .rocket-explosion, | ||
.rocket-wrapper:active .rocket-explosion { | |||
animation: explode 1.2s ease-out forwards; | animation: explode 1.2s ease-out forwards; | ||
animation-delay: 3s; | animation-delay: 3s; | ||
Revision as of 11:31, 11 April 2026
/* ==============================
BIBISI LAUNCHER CSS
Click-to-launch via :focus
============================== */
.rocket-wrapper {
display: inline-block;
text-align: center;
height: 0;
overflow: visible;
position: relative;
cursor: pointer;
outline: none; /* Removes the blue highlight ring when clicked */
}
.rocket {
display: inline-block;
font-size: 2em;
}
.rocket-explosion {
display: inline-block;
font-size: 1em;
opacity: 0;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
/* Triggered when clicked (receives focus) */
.rocket-wrapper:focus .rocket,
.rocket-wrapper:active .rocket {
animation: rocket-fly 3s cubic-bezier(0.2, 0, 0.8, 1) forwards;
}
.rocket-wrapper:focus .rocket-explosion,
.rocket-wrapper:active .rocket-explosion {
animation: explode 1.2s ease-out forwards;
animation-delay: 3s;
}
@keyframes rocket-fly {
0% { transform: translateY(0); opacity: 1; }
100% { transform: translateY(-110vh); opacity: 0; }
}
@keyframes explode {
0% { transform: translateY(-110vh) scale(1); opacity: 1; }
50% { transform: translateY(-110vh) scale(3); opacity: 0.8; }
100% { transform: translateY(-110vh) scale(6); opacity: 0; }
}