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 | ||
Pure CSS | Pure CSS rocket animation | ||
No JS or input required | |||
============================== */ | ============================== */ | ||
.rocket-wrapper { | |||
position: fixed; | position: fixed; | ||
bottom: | bottom: 20px; | ||
left: 50%; | left: 50%; | ||
margin-left: -25px; | margin-left: -25px; | ||
width: 50px; | width: 50px; | ||
text-align: center; | text-align: center; | ||
z-index: 9999; | z-index: 9999; | ||
} | } | ||
.rocket { | |||
.rocket- | font-size: 2em; | ||
. | display: block; | ||
. | animation: rocket-fly 3s cubic-bezier(0.4, 0, 1, 1) forwards; | ||
animation-delay: 2s; | |||
} | |||
.rocket-explosion { | |||
font-size: 1em; | |||
display: block; | |||
position: absolute; | position: absolute; | ||
bottom: 0; | |||
left: 0; | left: 0; | ||
width: 100%; | width: 100%; | ||
opacity: 0; | |||
animation: explode 1s ease-out forwards; | |||
animation-delay: 4.8s; | |||
} | } | ||
@keyframes rocket-fly { | @keyframes rocket-fly { | ||
0% { transform: translateY(0); } | 0% { transform: translateY(0); font-size: 2em; opacity: 1; } | ||
60% { transform: translateY(-40vh); font-size: 2.4em; opacity: 1; } | |||
85% { transform: translateY(-80vh); font-size: 2.8em; opacity: 1; } | |||
100% { transform: translateY(-100vh); font-size: 3em; opacity: 0; } | |||
100% { transform: translateY( | |||
} | } | ||
@keyframes | @keyframes explode { | ||
0% { transform: scale(0. | 0% { opacity: 1; transform: scale(1); font-size: 1em; } | ||
100% { transform: scale( | 50% { opacity: 0.8; transform: scale(3); font-size: 4em; } | ||
100% { opacity: 0; transform: scale(6); font-size: 8em; } | |||
} | } | ||
Revision as of 10:35, 11 April 2026
/* ==============================
BIBISI LAUNCHER
Pure CSS rocket animation
No JS or input required
============================== */
.rocket-wrapper {
position: fixed;
bottom: 20px;
left: 50%;
margin-left: -25px;
width: 50px;
text-align: center;
z-index: 9999;
}
.rocket {
font-size: 2em;
display: block;
animation: rocket-fly 3s cubic-bezier(0.4, 0, 1, 1) forwards;
animation-delay: 2s;
}
.rocket-explosion {
font-size: 1em;
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
opacity: 0;
animation: explode 1s ease-out forwards;
animation-delay: 4.8s;
}
@keyframes rocket-fly {
0% { transform: translateY(0); font-size: 2em; opacity: 1; }
60% { transform: translateY(-40vh); font-size: 2.4em; opacity: 1; }
85% { transform: translateY(-80vh); font-size: 2.8em; opacity: 1; }
100% { transform: translateY(-100vh); font-size: 3em; opacity: 0; }
}
@keyframes explode {
0% { opacity: 1; transform: scale(1); font-size: 1em; }
50% { opacity: 0.8; transform: scale(3); font-size: 4em; }
100% { opacity: 0; transform: scale(6); font-size: 8em; }
}