Template:3DOneFace/styles.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: | ||
/* ================================ | /* ================================ | ||
Template:3DOneFace/styles.css | Template:3DOneFace/styles.css | ||
Flat card rocking left-to-right | |||
================================ */ | ================================ */ | ||
| Line 14: | Line 14: | ||
.onef-face { | .onef-face { | ||
display: inline-block; | display: inline-block; | ||
animation-name: onef- | animation-name: onef-rock-normal; | ||
animation-timing-function: ease-in-out; | animation-timing-function: ease-in-out; | ||
animation-iteration-count: infinite; | animation-iteration-count: infinite; | ||
| Line 22: | Line 22: | ||
/* === INTENSITY LEVELS === */ | /* === INTENSITY LEVELS === */ | ||
.onef-low .onef-face { animation-name: onef- | .onef-low .onef-face { animation-name: onef-rock-low; } | ||
.onef-normal .onef-face { animation-name: onef- | .onef-normal .onef-face { animation-name: onef-rock-normal; } | ||
.onef-high .onef-face { animation-name: onef- | .onef-high .onef-face { animation-name: onef-rock-high; } | ||
/* === KEYFRAMES: LOW === */ | /* === KEYFRAMES: LOW === */ | ||
@keyframes onef- | @keyframes onef-rock-low { | ||
0% { transform: scaleX(1 | 0% { transform: scaleX(1); } | ||
25% { transform: scaleX(0.80); } | |||
50% { transform: scaleX(1); } | |||
75% { transform: scaleX(0.80); } | |||
100% { transform: scaleX(1); } | |||
100% { transform: scaleX(1 | |||
} | } | ||
| Line 43: | Line 40: | ||
/* === KEYFRAMES: NORMAL === */ | /* === KEYFRAMES: NORMAL === */ | ||
@keyframes onef- | @keyframes onef-rock-normal { | ||
0% { transform: scaleX(1 | 0% { transform: scaleX(1); } | ||
25% { transform: scaleX(0.45); } | |||
50% { transform: scaleX(1); } | |||
75% { transform: scaleX(0.45); } | |||
100% { transform: scaleX(1); } | |||
100% { transform: scaleX(1 | |||
} | } | ||
| Line 58: | Line 51: | ||
/* === KEYFRAMES: HIGH === */ | /* === KEYFRAMES: HIGH === */ | ||
@keyframes onef- | @keyframes onef-rock-high { | ||
0% { transform: scaleX(1 | 0% { transform: scaleX(1); } | ||
25% { transform: scaleX(0.15); } | |||
50% { transform: scaleX(1); } | |||
75% { transform: scaleX(0.15); } | |||
100% { transform: scaleX(1); } | |||
100% { transform: scaleX(1 | |||
} | } | ||
| Line 75: | Line 64: | ||
.onef-wrapper:hover .onef-face { | .onef-wrapper:hover .onef-face { | ||
animation-play-state: paused; | animation-play-state: paused; | ||
transform: scaleX(1 | transform: scaleX(1); | ||
transition: transform 0.15s ease-out; | transition: transform 0.15s ease-out; | ||
} | } | ||
| Line 92: | Line 81: | ||
animation: none; | animation: none; | ||
transform: none; | transform: none; | ||
} | } | ||
} | } | ||
Revision as of 16:18, 18 April 2026
/* ================================
Template:3DOneFace/styles.css
Flat card rocking left-to-right
================================ */
/* === CORE === */
.onef-wrapper {
display: inline-block;
vertical-align: middle;
}
.onef-face {
display: inline-block;
animation-name: onef-rock-normal;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}
/* === INTENSITY LEVELS === */
.onef-low .onef-face { animation-name: onef-rock-low; }
.onef-normal .onef-face { animation-name: onef-rock-normal; }
.onef-high .onef-face { animation-name: onef-rock-high; }
/* === KEYFRAMES: LOW === */
@keyframes onef-rock-low {
0% { transform: scaleX(1); }
25% { transform: scaleX(0.80); }
50% { transform: scaleX(1); }
75% { transform: scaleX(0.80); }
100% { transform: scaleX(1); }
}
/* === KEYFRAMES: NORMAL === */
@keyframes onef-rock-normal {
0% { transform: scaleX(1); }
25% { transform: scaleX(0.45); }
50% { transform: scaleX(1); }
75% { transform: scaleX(0.45); }
100% { transform: scaleX(1); }
}
/* === KEYFRAMES: HIGH === */
@keyframes onef-rock-high {
0% { transform: scaleX(1); }
25% { transform: scaleX(0.15); }
50% { transform: scaleX(1); }
75% { transform: scaleX(0.15); }
100% { transform: scaleX(1); }
}
/* === HOVER: SNAP FLAT === */
.onef-wrapper:hover .onef-face {
animation-play-state: paused;
transform: scaleX(1);
transition: transform 0.15s ease-out;
}
.onef-nohover:hover .onef-face {
animation-play-state: running;
transform: none;
transition: none;
}
/* === REDUCED MOTION SAFETY === */
@media (prefers-reduced-motion: reduce) {
.onef-face {
animation: none;
transform: none;
}
}