Ben Lin
2024-06-18 ebbd788fbb2c0b45d4473798efc57eec8ba74a25
src/design/transition/fade.less
@@ -27,13 +27,13 @@
}
.fade-slide-enter-from {
  opacity: 0;
  transform: translateX(-30px);
  opacity: 0;
}
.fade-slide-leave-to {
  opacity: 0;
  transform: translateX(30px);
  opacity: 0;
}
// ///////////////////////////////////////////////
@@ -43,17 +43,19 @@
// Speed: 1x
.fade-bottom-enter-active,
.fade-bottom-leave-active {
  transition: opacity 0.25s, transform 0.3s;
  transition:
    opacity 0.25s,
    transform 0.3s;
}
.fade-bottom-enter-from {
  opacity: 0;
  transform: translateY(-10%);
  opacity: 0;
}
.fade-bottom-leave-to {
  opacity: 0;
  transform: translateY(10%);
  opacity: 0;
}
// fade-scale
@@ -63,13 +65,13 @@
}
.fade-scale-enter-from {
  opacity: 0;
  transform: scale(1.2);
  opacity: 0;
}
.fade-scale-leave-to {
  opacity: 0;
  transform: scale(0.8);
  opacity: 0;
}
// ///////////////////////////////////////////////
@@ -79,15 +81,17 @@
// Speed: 1x
.fade-top-enter-active,
.fade-top-leave-active {
  transition: opacity 0.2s, transform 0.25s;
  transition:
    opacity 0.2s,
    transform 0.25s;
}
.fade-top-enter-from {
  opacity: 0;
  transform: translateY(8%);
  opacity: 0;
}
.fade-top-leave-to {
  opacity: 0;
  transform: translateY(-8%);
  opacity: 0;
}