170 lines
5.0 KiB
CSS
170 lines
5.0 KiB
CSS
/*动画库*/
|
|
/*滑入*/
|
|
.slide-in-bck-bottom {
|
|
-webkit-animation: slide-in-bck-bottom 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
|
|
animation: slide-in-bck-bottom 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
|
|
}
|
|
@-webkit-keyframes slide-in-bck-bottom {
|
|
0% {
|
|
-webkit-transform: translateZ(700px) translateY(300px);
|
|
transform: translateZ(700px) translateY(300px);
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
-webkit-transform: translateZ(0) translateY(0);
|
|
transform: translateZ(0) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes slide-in-bck-bottom {
|
|
0% {
|
|
-webkit-transform: translateZ(700px) translateY(300px);
|
|
transform: translateZ(700px) translateY(300px);
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
-webkit-transform: translateZ(0) translateY(0);
|
|
transform: translateZ(0) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
/*滑出*/
|
|
.slide-out-bck-bottom {
|
|
-webkit-animation: slide-out-bck-bottom 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
|
|
animation: slide-out-bck-bottom 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
|
|
}
|
|
@-webkit-keyframes slide-out-bck-bottom {
|
|
0% {
|
|
-webkit-transform: translateZ(0) translateY(0);
|
|
transform: translateZ(0) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
-webkit-transform: translateZ(-1100px) translateY(1000px);
|
|
transform: translateZ(-1100px) translateY(1000px);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes slide-out-bck-bottom {
|
|
0% {
|
|
-webkit-transform: translateZ(0) translateY(0);
|
|
transform: translateZ(0) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
-webkit-transform: translateZ(-1100px) translateY(1000px);
|
|
transform: translateZ(-1100px) translateY(1000px);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
/*弹入*/
|
|
.bounce-in-right {
|
|
-webkit-animation: bounce-in-right 1.1s both;
|
|
animation: bounce-in-right 1.1s both;
|
|
}
|
|
|
|
@-webkit-keyframes bounce-in-right {
|
|
0% {
|
|
-webkit-transform: translateX(600px);
|
|
transform: translateX(600px);
|
|
-webkit-animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
opacity: 0;
|
|
}
|
|
38% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
-webkit-animation-timing-function: ease-out;
|
|
animation-timing-function: ease-out;
|
|
opacity: 1;
|
|
}
|
|
55% {
|
|
-webkit-transform: translateX(68px);
|
|
transform: translateX(68px);
|
|
-webkit-animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
}
|
|
72% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
-webkit-animation-timing-function: ease-out;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
81% {
|
|
-webkit-transform: translateX(32px);
|
|
transform: translateX(32px);
|
|
-webkit-animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
}
|
|
90% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
-webkit-animation-timing-function: ease-out;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
95% {
|
|
-webkit-transform: translateX(8px);
|
|
transform: translateX(8px);
|
|
-webkit-animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
}
|
|
100% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
-webkit-animation-timing-function: ease-out;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
}
|
|
@keyframes bounce-in-right {
|
|
0% {
|
|
-webkit-transform: translateX(600px);
|
|
transform: translateX(600px);
|
|
-webkit-animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
opacity: 0;
|
|
}
|
|
38% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
-webkit-animation-timing-function: ease-out;
|
|
animation-timing-function: ease-out;
|
|
opacity: 1;
|
|
}
|
|
55% {
|
|
-webkit-transform: translateX(68px);
|
|
transform: translateX(68px);
|
|
-webkit-animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
}
|
|
72% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
-webkit-animation-timing-function: ease-out;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
81% {
|
|
-webkit-transform: translateX(32px);
|
|
transform: translateX(32px);
|
|
-webkit-animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
}
|
|
90% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
-webkit-animation-timing-function: ease-out;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
95% {
|
|
-webkit-transform: translateX(8px);
|
|
transform: translateX(8px);
|
|
-webkit-animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
}
|
|
100% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
-webkit-animation-timing-function: ease-out;
|
|
animation-timing-function: ease-out;
|
|
}
|
|
}
|