馆藏轮播图样式调整
This commit is contained in:
@@ -74,10 +74,10 @@ async function fetchSpecials() {
|
|||||||
}
|
}
|
||||||
bookMeta.value = specials.value.map((_, i) => ({
|
bookMeta.value = specials.value.map((_, i) => ({
|
||||||
color: bookColors[i % bookColors.length],
|
color: bookColors[i % bookColors.length],
|
||||||
rz: (Math.random() * 8 - 4).toFixed(2) + 'deg', // -4deg ~ 4deg
|
rz: '0deg', // 统一姿态,避免歪斜
|
||||||
ry: (Math.random() * 16 - 8).toFixed(2) + 'deg', // -8deg ~ 8deg
|
ry: '-5deg', // 统一轻微 3D 立体感
|
||||||
sc: (0.9 + Math.random() * 0.1).toFixed(3), // 0.9 ~ 1
|
sc: '1', // 统一大小,对齐基线
|
||||||
delay: (-Math.random() * 5).toFixed(2) + 's' // 0s ~ -5s
|
delay: '0s' // 同步呼吸浮动,整体节奏一致
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user