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 | BIBISI LAUNCHER CSS | ||
Click-to-launch via | Click-to-launch via <details> | ||
============================== */ | ============================== */ | ||
/* Hide the default triangle arrow on <summary> */ | |||
.rocket-wrapper > summary { | |||
list-style: none; | |||
} | } | ||
| Line 13: | Line 14: | ||
height: 0; | height: 0; | ||
overflow: visible; | overflow: visible; | ||
position: relative; /* Anchor the explosion */ | |||
} | |||
.rocket-trigger { | |||
cursor: pointer; | |||
outline: none; /* Removes click border */ | |||
} | } | ||
| Line 18: | Line 25: | ||
display: inline-block; | display: inline-block; | ||
font-size: 2em; | font-size: 2em; | ||
} | } | ||
| Line 25: | Line 31: | ||
font-size: 1em; | font-size: 1em; | ||
opacity: 0; | opacity: 0; | ||
position: absolute; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
} | } | ||
/* Triggered | /* Triggered when <details> is clicked (receives the [open] attribute) */ | ||
.rocket-wrapper[open] .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[open] .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:27, 11 April 2026
/* ==============================
BIBISI LAUNCHER CSS
Click-to-launch via <details>
============================== */
/* Hide the default triangle arrow on <summary> */
.rocket-wrapper > summary {
list-style: none;
}
.rocket-wrapper {
display: block;
text-align: center;
height: 0;
overflow: visible;
position: relative; /* Anchor the explosion */
}
.rocket-trigger {
cursor: pointer;
outline: none; /* Removes click border */
}
.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 <details> is clicked (receives the [open] attribute) */
.rocket-wrapper[open] .rocket {
animation: rocket-fly 3s cubic-bezier(0.2, 0, 0.8, 1) forwards;
}
.rocket-wrapper[open] .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; }
}