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 | ||
================================ */ | ================================ */ | ||
.onef-wrapper { | .onef-wrapper { | ||
| Line 14: | Line 10: | ||
.onef-face { | .onef-face { | ||
display: inline-block; | display: inline-block; | ||
animation-timing-function: ease-in-out; | animation-timing-function: ease-in-out; | ||
animation-iteration-count: infinite; | animation-iteration-count: infinite; | ||
} | } | ||
.onef-low .onef-face { animation-name: onef-rock-low; } | .onef-low .onef-face { animation-name: onef-rock-low; } | ||
.onef-normal .onef-face { animation-name: onef-rock-normal; } | .onef-normal .onef-face { animation-name: onef-rock-normal; } | ||
.onef-high .onef-face { animation-name: onef-rock-high; } | .onef-high .onef-face { animation-name: onef-rock-high; } | ||
@keyframes onef-rock-low { | @keyframes onef-rock-low { | ||
0% { transform: | 0% { transform: rotate(-15deg); } | ||
50% { transform: rotate(15deg); } | |||
50% { transform: | 100% { transform: rotate(-15deg); } | ||
100% { transform: | |||
} | } | ||
@keyframes onef-rock-normal { | @keyframes onef-rock-normal { | ||
0% { transform: | 0% { transform: rotate(-40deg); } | ||
50% { transform: rotate(40deg); } | |||
50% { transform: | 100% { transform: rotate(-40deg); } | ||
100% { transform: | |||
} | } | ||
@keyframes onef-rock-high { | @keyframes onef-rock-high { | ||
0% { transform: | 0% { transform: rotate(-70deg); } | ||
50% { transform: rotate(70deg); } | |||
50% { transform: | 100% { transform: rotate(-70deg); } | ||
100% { transform: | |||
} | } | ||
.onef-wrapper:hover .onef-face { | .onef-wrapper:hover .onef-face { | ||
animation-play-state: paused; | animation-play-state: paused; | ||
transform: | transform: rotate(0deg); | ||
transition: transform 0.15s ease-out; | transition: transform 0.15s ease-out; | ||
} | } | ||
| Line 73: | Line 47: | ||
transition: none; | transition: none; | ||
} | } | ||
@media (prefers-reduced-motion: reduce) { | @media (prefers-reduced-motion: reduce) { | ||
Revision as of 16:32, 18 April 2026
/* ================================
Template:3DOneFace/styles.css
================================ */
.onef-wrapper {
display: inline-block;
vertical-align: middle;
}
.onef-face {
display: inline-block;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}
.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 onef-rock-low {
0% { transform: rotate(-15deg); }
50% { transform: rotate(15deg); }
100% { transform: rotate(-15deg); }
}
@keyframes onef-rock-normal {
0% { transform: rotate(-40deg); }
50% { transform: rotate(40deg); }
100% { transform: rotate(-40deg); }
}
@keyframes onef-rock-high {
0% { transform: rotate(-70deg); }
50% { transform: rotate(70deg); }
100% { transform: rotate(-70deg); }
}
.onef-wrapper:hover .onef-face {
animation-play-state: paused;
transform: rotate(0deg);
transition: transform 0.15s ease-out;
}
.onef-nohover:hover .onef-face {
animation-play-state: running;
transform: none;
transition: none;
}
@media (prefers-reduced-motion: reduce) {
.onef-face {
animation: none;
transform: none;
}
}