首页调整转速

This commit is contained in:
fengrong 2024-11-27 11:04:00 +08:00
parent cc7fc7fc64
commit 6aff68e237

View File

@ -89,7 +89,7 @@ const props = defineProps({
const getAnimationStyle = (item) => { const getAnimationStyle = (item) => {
const irotorspeed = item.attributeMap?.irotorspeed ?? 0 const irotorspeed = item.attributeMap?.irotorspeed ?? 0
const animationDuration = 60 / irotorspeed const animationDuration = 1 / irotorspeed * 20
return { return {
'animation-duration': `${animationDuration}s`, 'animation-duration': `${animationDuration}s`,
'animation-timing-function': 'linear', 'animation-timing-function': 'linear',