ant-design-vue/components/vc-table/assets/animation.less

61 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-01-12 11:33:27 +08:00
.move-enter,
.move-appear {
2018-03-24 22:02:24 +08:00
opacity: 0;
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
animation-duration: 2.5s;
animation-fill-mode: both;
animation-play-state: paused;
}
.move-leave {
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
2019-01-12 11:33:27 +08:00
animation-duration: 0.5s;
2018-03-24 22:02:24 +08:00
animation-fill-mode: both;
animation-play-state: paused;
}
2019-01-12 11:33:27 +08:00
.move-enter.move-enter-active,
.move-appear.move-enter-active {
2018-03-24 22:02:24 +08:00
animation-name: moveLeftIn;
animation-play-state: running;
}
.move-leave.move-leave-active {
animation-name: moveRightOut;
animation-play-state: running;
}
@keyframes moveLeftIn {
0% {
transform-origin: 0 0;
transform: translateX(30px);
opacity: 0;
background: #fff6de;
}
20% {
transform-origin: 0 0;
transform: translateX(0);
opacity: 1;
}
2019-01-12 11:33:27 +08:00
80% {
2018-03-24 22:02:24 +08:00
background: #fff6de;
}
2019-01-12 11:33:27 +08:00
100% {
2018-03-24 22:02:24 +08:00
background: transparent;
opacity: 1;
}
}
@keyframes moveRightOut {
0% {
transform-origin: 0 0;
transform: translateX(0);
opacity: 1;
}
100% {
transform-origin: 0 0;
transform: translateX(-30px);
opacity: 0;
}
}