project init
This commit is contained in:
65
src/styles/animate/vue-transition.scss
Normal file
65
src/styles/animate/vue-transition.scss
Normal file
@@ -0,0 +1,65 @@
|
||||
// 过渡动画 横向渐变
|
||||
.fade-transverse-leave-active,
|
||||
.fade-transverse-enter-active {
|
||||
transition: all .5s;
|
||||
}
|
||||
|
||||
.fade-transverse-enter {
|
||||
opacity: 0;
|
||||
transform: translateX(-30px);
|
||||
}
|
||||
|
||||
.fade-transverse-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateX(30px);
|
||||
}
|
||||
|
||||
// 过渡动画 缩放渐变
|
||||
.fade-scale-leave-active,
|
||||
.fade-scale-enter-active {
|
||||
transition: all .5s;
|
||||
}
|
||||
|
||||
.fade-scale-enter {
|
||||
opacity: 0;
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
.fade-scale-leave-to {
|
||||
opacity: 0;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
@-webkit-keyframes animate-cloud {
|
||||
from {
|
||||
background-position: 600px 100%;
|
||||
}
|
||||
to {
|
||||
background-position: 0 100%;
|
||||
}
|
||||
}
|
||||
@-moz-keyframes animate-cloud {
|
||||
from {
|
||||
background-position: 600px 100%;
|
||||
}
|
||||
to {
|
||||
background-position: 0 100%;
|
||||
}
|
||||
}
|
||||
@-ms-keyframes animate-cloud {
|
||||
from {
|
||||
background-position: 600px 100%;
|
||||
}
|
||||
to {
|
||||
background-position: 0 100%;
|
||||
}
|
||||
}
|
||||
@-o-keyframes animate-cloud {
|
||||
from {
|
||||
background-position: 600px 100%;
|
||||
}
|
||||
to {
|
||||
background-position: 0 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user