mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 21:59:41 +08:00
40 lines
624 B
Plaintext
40 lines
624 B
Plaintext
.fade-enter {
|
|
opacity: 0;
|
|
.motion-common();
|
|
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
animation-play-state: paused;
|
|
}
|
|
|
|
.fade-leave {
|
|
.motion-common();
|
|
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
animation-play-state: paused;
|
|
}
|
|
|
|
.fade-enter.fade-enter-active {
|
|
animation-name: fadeIn;
|
|
animation-play-state: running;
|
|
}
|
|
|
|
.fade-leave.fade-leave-active {
|
|
animation-name: fadeOut;
|
|
animation-play-state: running;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes fadeOut {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
} |