瀏覽代碼

优化进度动画

Michael Wang 3 年之前
父節點
當前提交
90b64971f3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/features/mark/MarkHeader.vue

+ 2 - 2
src/features/mark/MarkHeader.vue

@@ -520,11 +520,11 @@ let todoCount = $computed(() =>
 
 
 .count-animation-enter-active,
 .count-animation-enter-active,
 .count-animation-leave-active {
 .count-animation-leave-active {
-  transition: all 1s ease;
+  transition: all 1.2s ease-in-out;
 }
 }
 .count-animation-enter-from,
 .count-animation-enter-from,
 .count-animation-leave-to {
 .count-animation-leave-to {
   opacity: 0;
   opacity: 0;
-  transform: translateY(30px);
+  transform: translateY(18px);
 }
 }
 </style>
 </style>