css3 頁面退出和進入的動畫


@-webkit-keyframes slideIn {
from {
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0)
}web

to {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0)
}
}ide

@keyframes slideIn {
from {
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0)
}3d

to {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0)
}
}orm

@-webkit-keyframes slideOut {
from {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0)
}animation

to {
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0)
}
}it

@keyframes slideOut {
from {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0)
}io

to {
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0)
}
}form

.page.slideIn {
-webkit-animation: slideIn .2s forwards;
animation: slideIn .2s forwards
}transform

.page.slideOut {
-webkit-animation: slideOut .2s forwards;
animation: slideOut .2s forwards
}webkit

相關文章
相關標籤/搜索