Skip to content

Commit

Permalink
fix: 修复zoom动画问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SummerOverture committed Sep 29, 2021
1 parent 0346a66 commit 81f9edb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/assets/css/core/motion/zoom.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
.make-motion(@className, @keyframeName, @duration);
.@{className}-enter,
.@{className}-appear {
opacity: 0;
transform: scale(0); // need this by yiminghe
animation-timing-function: @ease-out-circ;

&-prepare {
transform: none;
}
}
.@{className}-leave {
animation-timing-function: @ease-in-out-circ;
Expand Down Expand Up @@ -49,6 +54,7 @@
transform: scale(0.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}
Expand Down

0 comments on commit 81f9edb

Please sign in to comment.