馆藏轮播图样式调整

This commit is contained in:
2026-10-30 11:23:16 +08:00
parent 7024ad09ac
commit f02323e350
+4 -4
View File
@@ -74,10 +74,10 @@ async function fetchSpecials() {
}
bookMeta.value = specials.value.map((_, i) => ({
color: bookColors[i % bookColors.length],
rz: (Math.random() * 8 - 4).toFixed(2) + 'deg', // -4deg ~ 4deg
ry: (Math.random() * 16 - 8).toFixed(2) + 'deg', // -8deg ~ 8deg
sc: (0.9 + Math.random() * 0.1).toFixed(3), // 0.9 ~ 1
delay: (-Math.random() * 5).toFixed(2) + 's' // 0s ~ -5s
rz: '0deg', // 统一姿态,避免歪斜
ry: '-5deg', // 统一轻微 3D 立体感
sc: '1', // 统一大小,对齐基线
delay: '0s' // 同步呼吸浮动,整体节奏一致
}))
}