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:Party/style.css: Difference between revisions

From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*
==================================================
Template:Party/style.css
Controls the layout and the "thumping" speaker
animation for the Party template.
==================================================
*/
.party-wrapper {
.party-wrapper {
     display: flex;
     display: flex;
Line 16: Line 8:
}
}


/* Base class for the speakers */
/* Speaker bouncing animation */
.party-speaker {
.party-speaker {
     flex-shrink: 0;
     flex-shrink: 0;
     /* 0.8s loop makes it fast, simulating a high-BPM beat */
     /* 5 beats playing at 0.5s each = 2.5s total loop.
     animation: speaker-pump 0.8s infinite;
      'ease-out' makes the shrinking feel like a natural fade. */
     animation: speaker-pump 2.5s ease-out infinite;
     transform-origin: center center;
     transform-origin: center center;
}
}


/*
* Complex keyframes simulate a "random" heavy bass beat.
* By removing the delay, both speakers will now stay
* the exact same size at the exact same time!
*/
@keyframes speaker-pump {
@keyframes speaker-pump {
     0%   { transform: scale(1); }
    /* Beat 1: Heavy Drop */
     12% { transform: scale(1.35); }
     0%   { transform: scale(1.5); }
     25% { transform: scale(0.95); }
    19.9% { transform: scale(1); }
     38% { transform: scale(1.2); }
 
     50% { transform: scale(1); }
     /* Beat 2: Light Bump */
     65% { transform: scale(1.45); }
    20%   { transform: scale(1.2); }
     75% { transform: scale(0.9); }
     39.9% { transform: scale(1); }
     88% { transform: scale(1.25); }
 
     100% { transform: scale(1); }
    /* Beat 3: Medium Bump */
     40%   { transform: scale(1.4); }
     59.9% { transform: scale(1); }
 
     /* Beat 4: Tiny Bump */
    60%   { transform: scale(1.15); }
     79.9% { transform: scale(1); }
 
    /* Beat 5: Massive Drop */
    80%  { transform: scale(1.6); }
     99.9% { transform: scale(1); }
 
    /* Loop reset */
     100% { transform: scale(1); }
}
 
/* Main Box Styling */
.party-main-box {
    padding: 0.5em;
    margin: 0;
    font-size: 95%;
    text-align: center;
    color: #fff;
    border: 7px solid red;
    /*
    * flashy-glow changed from 0.5s to 2s to be
    * safely under the epilepsy risk threshold
    */
    animation: smooth-border 3s linear infinite, flashy-glow 2s step-end infinite;
}
 
/* Smoothly transitions through the rainbow */
@keyframes smooth-border {
    0%  { border-color: red; }
    17%  { border-color: orange; }
    33%  { border-color: yellow; }
    50%  { border-color: lime; }
    67%  { border-color: cyan; }
    83%  { border-color: magenta; }
    100% { border-color: red; }
}
 
/* Snaps instantly between neon colors */
@keyframes flashy-glow {
    0%  { box-shadow: 0px 0px 40px #00fe20, 0px 0px 2px #00fe20; }
    20% { box-shadow: 0px 0px 40px #ff00ff, 0px 0px 2px #ff00ff; }
    40% { box-shadow: 0px 0px 40px #00ffff, 0px 0px 2px #00ffff; }
    60% { box-shadow: 0px 0px 40px #ff0000, 0px 0px 2px #ff0000; }
    80% { box-shadow: 0px 0px 40px #ffff00, 0px 0px 2px #ffff00; }
    100%{ box-shadow: 0px 0px 40px #00fe20, 0px 0px 2px #00fe20; }
}
}

Latest revision as of 09:36, 13 April 2026

.party-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; 
    margin: 1em auto;
    padding: 20px; 
}

/* Speaker bouncing animation */
.party-speaker {
    flex-shrink: 0;
    /* 5 beats playing at 0.5s each = 2.5s total loop.
       'ease-out' makes the shrinking feel like a natural fade. */
    animation: speaker-pump 2.5s ease-out infinite;
    transform-origin: center center;
}

@keyframes speaker-pump {
    /* Beat 1: Heavy Drop */
    0%    { transform: scale(1.5); }
    19.9% { transform: scale(1); }

    /* Beat 2: Light Bump */
    20%   { transform: scale(1.2); }
    39.9% { transform: scale(1); }

    /* Beat 3: Medium Bump */
    40%   { transform: scale(1.4); }
    59.9% { transform: scale(1); }

    /* Beat 4: Tiny Bump */
    60%   { transform: scale(1.15); }
    79.9% { transform: scale(1); }

    /* Beat 5: Massive Drop */
    80%   { transform: scale(1.6); }
    99.9% { transform: scale(1); }

    /* Loop reset */
    100%  { transform: scale(1); }
}

/* Main Box Styling */
.party-main-box {
    padding: 0.5em;
    margin: 0;
    font-size: 95%;
    text-align: center;
    color: #fff;
    border: 7px solid red; 
    /* 
     * flashy-glow changed from 0.5s to 2s to be 
     * safely under the epilepsy risk threshold
     */
    animation: smooth-border 3s linear infinite, flashy-glow 2s step-end infinite;
}

/* Smoothly transitions through the rainbow */
@keyframes smooth-border {
    0%   { border-color: red; }
    17%  { border-color: orange; }
    33%  { border-color: yellow; }
    50%  { border-color: lime; }
    67%  { border-color: cyan; }
    83%  { border-color: magenta; }
    100% { border-color: red; }
}

/* Snaps instantly between neon colors */
@keyframes flashy-glow {
    0%  { box-shadow: 0px 0px 40px #00fe20, 0px 0px 2px #00fe20; }
    20% { box-shadow: 0px 0px 40px #ff00ff, 0px 0px 2px #ff00ff; }
    40% { box-shadow: 0px 0px 40px #00ffff, 0px 0px 2px #00ffff; }
    60% { box-shadow: 0px 0px 40px #ff0000, 0px 0px 2px #ff0000; }
    80% { box-shadow: 0px 0px 40px #ffff00, 0px 0px 2px #ffff00; }
    100%{ box-shadow: 0px 0px 40px #00fe20, 0px 0px 2px #00fe20; }
}