css3页⾯退出和进⼊的动画@-webkit-keyframes slideIn {
from {
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0)
}
to {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0)
}
}
@keyframes slideIn {
from {
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0)
}
to {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0)
}
}
@-webkit-keyframes slideOut {
from {
-
webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0)
}
to {
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0)
}
}
@keyframes slideOut {
from {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0)
}
to {
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0)
}
}
.page.slideIn {
-webkit-animation: slideIn .2s forwards;
animation: slideIn .2s forwards
}
.
page.slideOut {
css渐入渐出动画-webkit-animation: slideOut .2s forwards;
animation: slideOut .2s forwards
}
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论