Template:Party/style.css: Difference between revisions
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
SomebodyRum (talk | contribs) test |
SomebodyRum (talk | contribs) No edit summary |
||
| 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; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
gap: 15px; | gap: 15px; | ||
margin: 1em auto; | margin: 1em auto; | ||
padding: 20px; | padding: 20px; | ||
} | } | ||
| Line 14: | Line 22: | ||
animation: speaker-pump 0.8s infinite; | animation: speaker-pump 0.8s infinite; | ||
transform-origin: center center; | transform-origin: center center; | ||
} | } | ||
/* | /* | ||
* Complex keyframes simulate a "random" heavy bass beat | * 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 { | ||
Revision as of 21:38, 12 April 2026
/*
==================================================
Template:Party/style.css
Controls the layout and the "thumping" speaker
animation for the Party template.
==================================================
*/
.party-wrapper {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
margin: 1em auto;
padding: 20px;
}
/* Base class for the speakers */
.party-speaker {
flex-shrink: 0;
/* 0.8s loop makes it fast, simulating a high-BPM beat */
animation: speaker-pump 0.8s infinite;
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 {
0% { transform: scale(1); }
12% { transform: scale(1.35); }
25% { transform: scale(0.95); }
38% { transform: scale(1.2); }
50% { transform: scale(1); }
65% { transform: scale(1.45); }
75% { transform: scale(0.9); }
88% { transform: scale(1.25); }
100% { transform: scale(1); }
}