소스 검색

feat: 优化动画展示

year 3 일 전
부모
커밋
926bfb3895
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/feedback/WrapHoc/index.tsx
  2. 1 2
      src/feedback/dialog/component.module.scss

+ 2 - 2
src/feedback/WrapHoc/index.tsx

@@ -35,10 +35,10 @@ const WrapHoc: React.FC<Props> = ({
         if (animateTime) {
             setTimeout(() => {
                 setMaskVisible(false);
-            }, animateTime - 100);
+            }, animateTime);
             setTimeout(() => {
                 doClose(resData);
-            }, animateTime);
+            }, animateTime + 50);
             return;
         }
         setMaskVisible(false);

+ 1 - 2
src/feedback/dialog/component.module.scss

@@ -5,11 +5,10 @@
     position: relative;
     transform: translateY(-50px) scale(0.98);
     transition: all 0.2s ease-in-out;
-    opacity: 0.2;
+    opacity: 0;
     &.bottom {
         transform: translateY(100%) scale(1);
     }
-
     &.showed {
         transform: translateY(0) scale(1);
         opacity: 1;