shop-applet/uni_modules/uview-ui/components/u-transition/vue.ani-style.scss

114 lines
2.0 KiB
SCSS
Raw Normal View History

2023-09-20 18:16:59 +08:00
/**
* vue版本动画内置的动画模式有如下
* fade淡入
* zoom缩放
* fade-zoom缩放淡入
* fade-up上滑淡入
* fade-down下滑淡入
* fade-left左滑淡入
* fade-right右滑淡入
* slide-up上滑进入
* slide-down下滑进入
* slide-left左滑进入
* slide-right右滑进入
*/
$u-zoom-scale: scale(0.95);
.u-fade-enter-active,
.u-fade-leave-active {
transition-property: opacity;
}
.u-fade-enter,
.u-fade-leave-to {
opacity: 0
}
.u-fade-zoom-enter,
.u-fade-zoom-leave-to {
transform: $u-zoom-scale;
opacity: 0;
}
.u-fade-zoom-enter-active,
.u-fade-zoom-leave-active {
transition-property: transform, opacity;
}
.u-fade-down-enter-active,
.u-fade-down-leave-active,
.u-fade-left-enter-active,
.u-fade-left-leave-active,
.u-fade-right-enter-active,
.u-fade-right-leave-active,
.u-fade-up-enter-active,
.u-fade-up-leave-active {
transition-property: opacity, transform;
}
.u-fade-up-enter,
.u-fade-up-leave-to {
transform: translate3d(0, 100%, 0);
opacity: 0
}
.u-fade-down-enter,
.u-fade-down-leave-to {
transform: translate3d(0, -100%, 0);
opacity: 0
}
.u-fade-left-enter,
.u-fade-left-leave-to {
transform: translate3d(-100%, 0, 0);
opacity: 0
}
.u-fade-right-enter,
.u-fade-right-leave-to {
transform: translate3d(100%, 0, 0);
opacity: 0
}
.u-slide-down-enter-active,
.u-slide-down-leave-active,
.u-slide-left-enter-active,
.u-slide-left-leave-active,
.u-slide-right-enter-active,
.u-slide-right-leave-active,
.u-slide-up-enter-active,
.u-slide-up-leave-active {
transition-property: transform;
}
.u-slide-up-enter,
.u-slide-up-leave-to {
transform: translate3d(0, 100%, 0)
}
.u-slide-down-enter,
.u-slide-down-leave-to {
transform: translate3d(0, -100%, 0)
}
.u-slide-left-enter,
.u-slide-left-leave-to {
transform: translate3d(-100%, 0, 0)
}
.u-slide-right-enter,
.u-slide-right-leave-to {
transform: translate3d(100%, 0, 0)
}
.u-zoom-enter-active,
.u-zoom-leave-active {
transition-property: transform
}
.u-zoom-enter,
.u-zoom-leave-to {
transform: $u-zoom-scale
}