New mission: revamp the portals to make them look actually tolerable to the eye. They are currently placeholders as of now.
The Gold Network: Soyworld | SNCApedia | SoyPlace


I'm not dead, just inactive for the moment. Faggot (talk) 20:16, 9 April 2026 (UTC)

Template:BibisiLauncher/style.css: Difference between revisions

From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Button styling */
/* ==============================
.launcher-btn {
  BIBISI LAUNCHER CSS
    display: inline-block;
  Click-to-launch via :focus
    padding: 8px 16px;
  ============================== */
    background: #d33;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
}
.launcher-btn:hover { background: #f44; }


/* -------------------------------------- */
.rocket-wrapper {
/* TRIGGER ANIMATIONS ON CLICK            */
    display: block;
/* -------------------------------------- */
    position: relative;
/* Notice the "~ div" - this connects the hidden span to the rocket below it */
     cursor: pointer;
#launch-easter-egg:target ~ div .missile-object {
     outline: none;
     visibility: visible;
     animation: rocket-move 2s cubic-bezier(0.5, 0, 1, 0) forwards;
}
}


#launch-easter-egg:target ~ div .smoke {
.rocket {
    visibility: visible;
     display: block;
    animation: smoke-anim 0.8s ease-out infinite;
}
/* Shuts off the smoke pad completely after the rocket leaves (2s) */
#launch-easter-egg:target ~ div .smoke-pad {
     animation: hide-pad 2s forwards;
}
}


#launch-easter-egg:target ~ div .fire {
.rocket-explosion {
     visibility: visible;
     display: flex;
     animation: fire-anim 0.4s linear infinite;
     align-items: center;
}
     justify-content: center;
 
     position: absolute;
@keyframes hide-pad {
     top: 0; left: 0; right: 0; bottom: 0;
    0%, 99% { opacity: 1; visibility: visible; }
     opacity: 0;
     100%    { opacity: 0; visibility: hidden; }
}
 
/* -------------------------------------- */
/* ROCKET CONTAINER                      */
/* -------------------------------------- */
.missile-object, .smoke-pad {
     position: fixed;
     bottom: -60px;
    left: 50%;
    margin-left: -25px; /* Centers the 50px width */
    width: 50px;       /* Fixed width fixes the offset corner bug! */
     height: 50px;
    font-size: 50px;
    line-height: 50px;
    text-align: center;
    visibility: hidden;
    z-index: 9999;
}
.smoke-pad {
    z-index: 9998; /* Keeps smoke behind the rocket */
}
}


@keyframes rocket-move {
/* Trigger animations when clicked */
     0%  { transform: translateY(0); }
.rocket-wrapper:focus .rocket,
     100% { transform: translateY(-1500px); }
.rocket-wrapper:active .rocket {
     /* 1. Shake for 0.6 seconds */
    /* 2. Then fly for 2.4 seconds (starts after a 0.6s delay) */
     animation:  
        rocket-shake 0.6s linear,
        rocket-fly 2.4s ease-in 0.6s forwards;
}
}


/* -------------------------------------- */
.rocket-wrapper:focus .rocket-explosion,
/* CONTINUOUS FIRE                        */
.rocket-wrapper:active .rocket-explosion {
/* -------------------------------------- */
     animation: explode 1.2s ease-out forwards;
.fire {
     animation-delay: 3s; /* Triggers exactly when the 3-second flight ends */
     position: absolute;
     left: 0;
    top: 35px; /* Fixed right under the rocket */
    width: 50px;
    font-size: 30px;
    text-align: center;
    visibility: hidden;
}
}


/* 4 particles spread evenly across the 0.4s animation for continuous flow */
/* The shake effect */
.fire-1 { animation-delay: 0s; }
@keyframes rocket-shake {
.fire-2 { animation-delay: 0.1s; }
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
.fire-3 { animation-delay: 0.2s; }
    20%      { transform: translate(-3px, 2px) rotate(-5deg); }
.fire-4 { animation-delay: 0.3s; }
    40%      { transform: translate(3px, -2px) rotate(5deg); }
 
     60%     { transform: translate(-3px, 2px) rotate(-5deg); }
@keyframes fire-anim {
     80%     { transform: translate(3px, -2px) rotate(5deg); }
     0%   { transform: translateY(0) scale(1); opacity: 1; }
     100% { transform: translateY(50px) scale(0); opacity: 0; }
}
}


/* -------------------------------------- */
/* The flight: Solid all the way up, then instantly vanishes at the very end */
/* CONTINUOUS SMOKE                      */
@keyframes rocket-fly {
/* -------------------------------------- */
     0%    { transform: translateY(0); opacity: 1; }
.smoke {
     99%  { transform: translateY(-110vh); opacity: 1; } /* Stays solid until the end */
     position: absolute;
     100%  { transform: translateY(-110vh); opacity: 0; } /* Vanishes as explosion starts */
    left: 0;
     top: 10px;
    width: 50px;
     text-align: center;
    visibility: hidden;
}
}


/* 5 particles spread out in different directions to look like a cloud */
@keyframes explode {
.smoke-1 { animation-delay: 0s; }
     0%  { transform: translateY(-110vh) scale(1); opacity: 1; }
.smoke-2 { animation-delay: 0.15s; margin-left: -15px; }
     100% { transform: translateY(-110vh) scale(6); opacity: 0; }
.smoke-3 { animation-delay: 0.3s; margin-left: 15px; }
.smoke-4 { animation-delay: 0.45s; margin-top: 15px; }
.smoke-5 { animation-delay: 0.6s; margin-left: -5px; }
 
@keyframes smoke-anim {
     0%  { transform: scale(0.5); opacity: 1; }
     100% { transform: scale(3); opacity: 0; } /* Max size is now 3 instead of 5 */
}
}

Latest revision as of 12:06, 11 April 2026

/* ==============================
   BIBISI LAUNCHER CSS
   Click-to-launch via :focus
   ============================== */

.rocket-wrapper {
    display: block;
    position: relative;
    cursor: pointer;
    outline: none;
}

.rocket {
    display: block;
}

.rocket-explosion {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
}

/* Trigger animations when clicked */
.rocket-wrapper:focus .rocket,
.rocket-wrapper:active .rocket {
    /* 1. Shake for 0.6 seconds */
    /* 2. Then fly for 2.4 seconds (starts after a 0.6s delay) */
    animation: 
        rocket-shake 0.6s linear,
        rocket-fly 2.4s ease-in 0.6s forwards;
}

.rocket-wrapper:focus .rocket-explosion,
.rocket-wrapper:active .rocket-explosion {
    animation: explode 1.2s ease-out forwards;
    animation-delay: 3s; /* Triggers exactly when the 3-second flight ends */
}

/* The shake effect */
@keyframes rocket-shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20%      { transform: translate(-3px, 2px) rotate(-5deg); }
    40%      { transform: translate(3px, -2px) rotate(5deg); }
    60%      { transform: translate(-3px, 2px) rotate(-5deg); }
    80%      { transform: translate(3px, -2px) rotate(5deg); }
}

/* The flight: Solid all the way up, then instantly vanishes at the very end */
@keyframes rocket-fly {
    0%    { transform: translateY(0); opacity: 1; }
    99%   { transform: translateY(-110vh); opacity: 1; } /* Stays solid until the end */
    100%  { transform: translateY(-110vh); opacity: 0; } /* Vanishes as explosion starts */
}

@keyframes explode {
    0%   { transform: translateY(-110vh) scale(1); opacity: 1; }
    100% { transform: translateY(-110vh) scale(6); opacity: 0; }
}