qa-regulatory-gwj-app/uni_modules/uview-ui/components/u-transition/vue.ani-style.scss

114 lines
2.0 KiB
SCSS
Raw Normal View History

2023-11-07 10:08:37 +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
}