year преди 2 дни
родител
ревизия
1074b937c5
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      src/feedback/WrapHoc/index.module.scss
  2. 2 2
      src/feedback/WrapHoc/index.tsx

+ 1 - 1
src/feedback/WrapHoc/index.module.scss

@@ -24,7 +24,7 @@
         left: 0;
         top: 0;
         width: 100%;
-        transition: all 0.2s ease-in-out;
+        transition: all 0.2s linear;
         opacity: 0;
         &.show {
             opacity: 1;

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

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