vue-vben-admin/src/design/transition/fade.less

98 lines
1.5 KiB
Plaintext
Raw Normal View History

.fade-transition {
&-enter-active,
&-leave-active {
transition: opacity 0.2s ease-in-out;
}
&-enter-from,
&-leave-to {
opacity: 0;
}
}
2020-09-28 20:19:10 +08:00
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.2s ease-in-out;
2020-09-28 20:19:10 +08:00
}
.fade-enter-from,
.fade-leave-to {
2021-11-10 22:12:10 +08:00
opacity: 0;
2020-09-28 20:19:10 +08:00
}
/* fade-slide */
.fade-slide-leave-active,
.fade-slide-enter-active {
2020-11-25 23:20:30 +08:00
transition: all 0.3s;
2020-09-28 20:19:10 +08:00
}
.fade-slide-enter-from {
2020-10-15 21:12:38 +08:00
transform: translateX(-30px);
opacity: 0;
2020-09-28 20:19:10 +08:00
}
.fade-slide-leave-to {
2020-10-15 21:12:38 +08:00
transform: translateX(30px);
opacity: 0;
2020-09-28 20:19:10 +08:00
}
// ///////////////////////////////////////////////
// Fade Bottom
// ///////////////////////////////////////////////
// Speed: 1x
.fade-bottom-enter-active,
.fade-bottom-leave-active {
transition:
opacity 0.25s,
transform 0.3s;
2020-09-28 20:19:10 +08:00
}
2020-12-10 23:58:11 +08:00
.fade-bottom-enter-from {
transform: translateY(-10%);
opacity: 0;
2020-09-28 20:19:10 +08:00
}
.fade-bottom-leave-to {
2020-12-10 23:58:11 +08:00
transform: translateY(10%);
opacity: 0;
2020-12-10 23:58:11 +08:00
}
// fade-scale
.fade-scale-leave-active,
.fade-scale-enter-active {
transition: all 0.28s;
}
.fade-scale-enter-from {
transform: scale(1.2);
opacity: 0;
2020-12-10 23:58:11 +08:00
}
.fade-scale-leave-to {
transform: scale(0.8);
opacity: 0;
2020-09-28 20:19:10 +08:00
}
// ///////////////////////////////////////////////
// Fade Top
// ///////////////////////////////////////////////
// Speed: 1x
.fade-top-enter-active,
.fade-top-leave-active {
transition:
opacity 0.2s,
transform 0.25s;
2020-09-28 20:19:10 +08:00
}
2020-10-11 22:59:44 +08:00
.fade-top-enter-from {
2020-09-28 20:19:10 +08:00
transform: translateY(8%);
opacity: 0;
2020-09-28 20:19:10 +08:00
}
.fade-top-leave-to {
transform: translateY(-8%);
opacity: 0;
2020-09-28 20:19:10 +08:00
}