mirror of
https://github.com/xfgryujk/blivechat.git
synced 2026-08-19 09:43:28 +08:00
修复样式生成器退场动画 CSS
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user