2015-07-01 17:25:16 +08:00
|
|
|
.fade-enter {
|
|
|
|
opacity: 0;
|
|
|
|
.motion-common();
|
2015-07-09 11:04:45 +08:00
|
|
|
animation-timing-function: @ease-in;
|
2015-07-01 17:25:16 +08:00
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-leave {
|
|
|
|
.motion-common();
|
2015-07-09 11:04:45 +08:00
|
|
|
animation-timing-function: @ease-in;
|
2015-07-01 17:25:16 +08:00
|
|
|
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;
|
|
|
|
}
|
2015-07-09 11:04:45 +08:00
|
|
|
}
|