123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- /**
- * 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
- }
|