Template:BibisiLauncher/style.css: Difference between revisions
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
SomebodyRum (talk | contribs) mNo edit summary |
SomebodyRum (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
@keyframes rocket-launch { | @keyframes rocket-launch { | ||
0% { transform: translateY(0); | 0% { transform: translateY(0); opacity: 1; } | ||
100% { transform: translateY(-1200px); opacity: 0; } | |||
100% { transform: translateY(- | |||
} | } | ||
.missile-object { | |||
.missile- | |||
position: fixed; | position: fixed; | ||
bottom: - | bottom: 0; | ||
left: 50%; | |||
font-size: 50px; | |||
visibility: hidden; | visibility: hidden; | ||
z-index: 9999; | z-index: 9999; | ||
} | } | ||
/* This | /* This makes it launch when you press and hold */ | ||
. | .launcher-btn:active + .missile-object { | ||
visibility: visible | visibility: visible; | ||
animation: rocket-launch | animation: rocket-launch 1.5s cubic-bezier(0.5, 0, 1, 0) forwards; | ||
} | } | ||
. | .launcher-btn { | ||
cursor: pointer; | |||
display: inline-block; | display: inline-block; | ||
padding: 10px; | |||
background: #333; | |||
color: #fff; | |||
border-radius: 5px; | |||
user-select: none; | |||
} | } | ||
Revision as of 17:45, 10 April 2026
@keyframes rocket-launch {
0% { transform: translateY(0); opacity: 1; }
100% { transform: translateY(-1200px); opacity: 0; }
}
.missile-object {
position: fixed;
bottom: 0;
left: 50%;
font-size: 50px;
visibility: hidden;
z-index: 9999;
}
/* This makes it launch when you press and hold */
.launcher-btn:active + .missile-object {
visibility: visible;
animation: rocket-launch 1.5s cubic-bezier(0.5, 0, 1, 0) forwards;
}
.launcher-btn {
cursor: pointer;
display: inline-block;
padding: 10px;
background: #333;
color: #fff;
border-radius: 5px;
user-select: none;
}