修复样式生成器退场动画 CSS

This commit is contained in:
MC J
2026-05-20 22:46:41 +08:00
committed by John Smith
parent 1ae0e1e730
commit d1661021f2

View File

@@ -275,7 +275,7 @@ export function getAnimationStyle(config) {
keyframes.push(` ${curTime / totalTime * 100}% { opacity: 1; translate: none; }`)
curTime += config.fadeOutTime
keyframes.push(` ${curTime / totalTime * 100}% { opacity: 0;${!config.slide ? ''
: ` translate: calc(${config.reverseSlide ? -16 : 16} * var(--base-size);`
: ` translate: calc(${config.reverseSlide ? -16 : 16} * var(--base-size));`
} }`)
}
return `/* 动画 Animation */