fix: 加快弹幕编辑器开关速度

This commit is contained in:
unanmed 2024-04-23 22:32:20 +08:00
parent 32aaf98fa6
commit 3af1050525

View File

@ -288,7 +288,7 @@ function send() {
function close() {
mainDiv.classList.remove('danmaku-startup');
mainDiv.classList.add('danmaku-close');
sleep(400).then(() => {
sleep(200).then(() => {
fixedUi.close(props.num);
});
}
@ -411,11 +411,11 @@ onUnmounted(() => {
}
.danmaku-startup {
animation: editor-startup 0.4s ease-out 0s 1 normal forwards running;
animation: editor-startup 0.2s ease-out 0s 1 normal forwards running;
}
.danmaku-close {
animation: editor-close 0.4s ease-in 0s 1 normal forwards running;
animation: editor-close 0.2s ease-in 0s 1 normal forwards running;
}
@keyframes editor-startup {