Explorar el Código

fix(Transition): fade-transition淡出淡入无效

hsldymq hace 3 años
padre
commit
b3f6b04981
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      src/design/transition/fade.less

+ 12 - 0
src/design/transition/fade.less

@@ -1,3 +1,15 @@
+.fade-transition {
+  &-enter-active,
+  &-leave-active {
+    transition: opacity 0.2s ease-in-out;
+  }
+
+  &-enter-from,
+  &-leave-to {
+    opacity: 0;
+  }
+}
+
 .fade-enter-active,
 .fade-leave-active {
   transition: opacity 0.2s ease-in-out;