hard drop rotation

This commit is contained in:
2026-03-16 13:30:20 +01:00
parent 4320b46e37
commit 81b243bd85
2 changed files with 9 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ body {
#matrixCard { #matrixCard {
background-image: none; background-image: none;
transform-origin: bottom;
} }
#screenRow .card > * { #screenRow .card > * {
@@ -326,6 +327,12 @@ td.trail-animation::after {
animation: trail-animation ease-out 0.3s; animation: trail-animation ease-out 0.3s;
} }
@keyframes hard-dropped-table-animation {
50% {
transform: translateY(10px) rotateX(-3deg);
}
}
@keyframes locked-animation { @keyframes locked-animation {
from { from {
--h: 0deg; --h: 0deg;

View File

@@ -370,7 +370,7 @@ stylesheetSelect.oninput = function (event) {
.then((json) => { .then((json) => {
json = json.filter((item) => (item.type == "skin" && item.format == "tetrioraster" && /\.(?:png|jpg|jpeg|gif|bmp|webp|svg)$/i.test(item.path))) json = json.filter((item) => (item.type == "skin" && item.format == "tetrioraster" && /\.(?:png|jpg|jpeg|gif|bmp|webp|svg)$/i.test(item.path)))
const groups = Map.groupBy(json, (skin) => skin.author) const groups = Map.groupBy(json, (skin) => skin.author)
const data = groups.entries().map(([author, skins]) => { var data = groups.entries().map(([author, skins]) => {
return { return {
text: author, text: author,
children: skins.map((skin) => { children: skins.map((skin) => {
@@ -388,6 +388,7 @@ stylesheetSelect.oninput = function (event) {
text: "A forest" text: "A forest"
}] }]
}) })
data.sort((group1, group2) => group1.text > group2.text)
$('#skinURLSelect').select2({data: data}); $('#skinURLSelect').select2({data: data});
}) })
break; break;