修改动画

This commit is contained in:
结发受长生 2019-05-17 17:50:36 +08:00
parent a56e371bb0
commit 5111f61f87
2 changed files with 17 additions and 67 deletions

View File

@ -251,101 +251,51 @@
/*弹性动画*/ /*弹性动画*/
@keyframes leftIn { @keyframes leftIn {
from, 60%, 75%, 90%, to { from {transform: translate3d(0, 0, 0);}
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); to {transform: translate3d(333px, 0, 0);}
} }
0% { %anmCommon {
transform: translate3d(0, 0, 0); animation-duration: .3s;
} animation-fill-mode: both;
animation-timing-function: ease-in-out;
60% {
transform: translate3d(358px, 0, 0);
}
75% {
transform: translate3d(323px, 0, 0);
}
90% {
transform: translate3d(338px, 0, 0);
}
to {
transform: translate3d(333px, 0, 0);
}
} }
%anmLeftIn { %anmLeftIn {
animation-duration: .8s; @extend %anmCommon;
animation-fill-mode: both;
animation-name: leftIn; animation-name: leftIn;
} }
@keyframes leftOut { @keyframes leftOut {
from, 60%, 75%, 90%, to { from {transform: translate3d(333px, 0, 0);}
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); to {transform: translate3d(0, 0, 0);}
}
0% {
transform: translate3d(333px, 0, 0);
}
60% {
transform: translate3d(-25px, 0, 0);
}
75% {
transform: translate3d(10px, 0, 0);
}
90% {
transform: translate3d(-5px, 0, 0);
}
to {
transform: translate3d(0, 0, 0);
}
} }
%anmLeftOut { %anmLeftOut {
animation-duration: .8s; @extend %anmCommon;
animation-name: leftOut; animation-name: leftOut;
} }
@keyframes smallLeftIn { @keyframes smallLeftIn {
from, 60%, 75%, 90%, to { from {transform: translate3d(0, 0, 0);}
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
0% {transform: translate3d(0, 0, 0);}
60% {transform: translate3d(325px, 0, 0);}
75% {transform: translate3d(290px, 0, 0);}
90% {transform: translate3d(305px, 0, 0);}
to {transform: translate3d(300px, 0, 0);} to {transform: translate3d(300px, 0, 0);}
} }
%anmSmallLeftIn { %anmSmallLeftIn {
animation-duration: .8s; @extend %anmCommon;
animation-fill-mode: both;
animation-name: smallLeftIn; animation-name: smallLeftIn;
} }
@keyframes smallleftOut { @keyframes smallleftOut {
from, 60%, 75%, 90%, to { from {transform: translate3d(300px, 0, 0);}
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
0% {transform: translate3d(333px, 0, 0);}
60% {transform: translate3d(-25px, 0, 0);}
75% {transform: translate3d(10px, 0, 0);}
90% {transform: translate3d(-5px, 0, 0);}
to {transform: translate3d(0, 0, 0);} to {transform: translate3d(0, 0, 0);}
} }
%anmSmallLeftOut { %anmSmallLeftOut {
animation-duration: .8s; @extend %anmCommon;
animation-fill-mode: both;
animation-name: smallleftOut; animation-name: smallleftOut;
} }
// 头像旋转动画 // 头像旋转动画
@keyframes profilepic { @keyframes profilepic {
0% { 0% {

View File

@ -24,7 +24,7 @@ html, body, #container {
display: none; display: none;
} }
&.show { &.show {
background: linear-gradient(200deg,#a0cfe4,#e8c37e); background: linear-gradient(200deg,#5aa5c6,#a4854b);
.anm-canvas { .anm-canvas {
display: block; display: block;
position: fixed; position: fixed;