Template:BibisiLauncher/style.css: Difference between revisions
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
SomebodyRum (talk | contribs) m more testing stuff feature |
SomebodyRum (talk | contribs) m css testing 3 |
||
| Line 1: | Line 1: | ||
/* The launch animation */ | /* The launch animation: Acceleration, slight wobble, and high-speed exit */ | ||
@keyframes launch-sequence { | @keyframes launch-sequence { | ||
0% { transform: translateY(0); opacity: 1; } | 0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; } | ||
10% { transform: translateY(20px) rotate(-5deg) scale(1.1); } /* Ignition/Wobble */ | |||
20% { transform: translateY(-50px) rotate(5deg) scale(1.2); } /* Lift off */ | |||
100% { opacity: 0; } | 30% { transform: translateY(-150px) rotate(0deg) scale(1); } /* Stabilization */ | ||
100% { transform: translateY(-1500px) scale(0.5); opacity: 0; } /* Thrust out of screen */ | |||
} | } | ||
.missile-object { | .missile-object { | ||
position: fixed; /* | position: fixed; | ||
bottom: -100px; /* Starts below the screen */ | |||
left: 50%; | left: 50%; | ||
visibility: hidden; | visibility: hidden; | ||
z-index: 9999; | z-index: 9999; | ||
font-size: 50px; | font-size: 50px; | ||
/* Acceleration curve: starts slow (ignition), ends very fast */ | |||
transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); | |||
} | } | ||
.launcher-btn:active + .missile-object { | .launcher-btn:active + .missile-object { | ||
visibility: visible; | visibility: visible; | ||
animation: launch-sequence | /* Animation duration: 1.5s is fast, perfect for a launch */ | ||
animation: launch-sequence 1.5s cubic-bezier(0.5, 0, 1, 0) forwards; | |||
} | } | ||
| Line 28: | Line 31: | ||
background: #333; | background: #333; | ||
color: #fff; | color: #fff; | ||
border-radius: 5px; | |||
} | } | ||
Revision as of 17:29, 10 April 2026
/* The launch animation: Acceleration, slight wobble, and high-speed exit */
@keyframes launch-sequence {
0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
10% { transform: translateY(20px) rotate(-5deg) scale(1.1); } /* Ignition/Wobble */
20% { transform: translateY(-50px) rotate(5deg) scale(1.2); } /* Lift off */
30% { transform: translateY(-150px) rotate(0deg) scale(1); } /* Stabilization */
100% { transform: translateY(-1500px) scale(0.5); opacity: 0; } /* Thrust out of screen */
}
.missile-object {
position: fixed;
bottom: -100px; /* Starts below the screen */
left: 50%;
visibility: hidden;
z-index: 9999;
font-size: 50px;
/* Acceleration curve: starts slow (ignition), ends very fast */
transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.launcher-btn:active + .missile-object {
visibility: visible;
/* Animation duration: 1.5s is fast, perfect for a launch */
animation: launch-sequence 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;
}