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: | ||
.onef-scene { | |||
display: inline-block; | |||
} | |||
.onef- | .onef-cube { | ||
display: inline-block; | display: inline-block; | ||
position: relative; | |||
} | } | ||
.onef- | .onef-center { | ||
display: inline-block; | display: inline-block; | ||
animation-timing-function: | animation-timing-function: linear; | ||
animation-iteration-count: infinite; | animation-iteration-count: infinite; | ||
} | } | ||
.onef-low .onef- | .onef-low .onef-center { animation-name: onef-spin-low; } | ||
.onef-normal .onef- | .onef-normal .onef-center { animation-name: onef-spin-normal; } | ||
.onef-high .onef- | .onef-high .onef-center { animation-name: onef-spin-high; } | ||
@keyframes onef- | @keyframes onef-spin-low { | ||
from { transform: rotate(0deg); } | |||
to { transform: rotate(360deg); } | |||
} | } | ||
@keyframes onef- | @keyframes onef-spin-normal { | ||
from { transform: rotate(0deg); } | |||
to { transform: rotate(360deg); } | |||
} | } | ||
@keyframes onef- | @keyframes onef-spin-high { | ||
from { transform: rotate(0deg); } | |||
to { transform: rotate(360deg); } | |||
} | } | ||
.onef- | .onef-scene:hover .onef-center { | ||
animation-play-state: paused; | animation-play-state: paused; | ||
} | } | ||
.onef-nohover:hover .onef- | .onef-nohover:hover .onef-center { | ||
animation-play-state: running; | animation-play-state: running; | ||
} | } | ||
@media (prefers-reduced-motion: reduce) { | @media (prefers-reduced-motion: reduce) { | ||
.onef- | .onef-center { | ||
animation: none; | animation: none; | ||
} | } | ||
} | } | ||
Revision as of 16:37, 18 April 2026
.onef-scene {
display: inline-block;
}
.onef-cube {
display: inline-block;
position: relative;
}
.onef-center {
display: inline-block;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
.onef-low .onef-center { animation-name: onef-spin-low; }
.onef-normal .onef-center { animation-name: onef-spin-normal; }
.onef-high .onef-center { animation-name: onef-spin-high; }
@keyframes onef-spin-low {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes onef-spin-normal {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes onef-spin-high {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.onef-scene:hover .onef-center {
animation-play-state: paused;
}
.onef-nohover:hover .onef-center {
animation-play-state: running;
}
@media (prefers-reduced-motion: reduce) {
.onef-center {
animation: none;
}
}