自上到下
.fadein {
animation: fadein .5s;
}
@keyframes fadein {
0% {
transform: translate(0, -100%);
}
100% {
transform: none;
}
}
自下到上
.fadein {
animation: fadein .5s;
}
@keyframes fadein {
0% {
transform: translate(0,100%);
}
100% {
transform: none;
}
}
自左到右
.fadein {
animation: fadein .5s;
}
@keyframes fadein {
0% {
transform: translate(-100%,0);
}
100% {
transform: none;
}
}
自右到左
.fadein {
animation: fadein .5s;
}
@keyframes fadein {
0% {
transform: translate(100%, 0);
}
100% {
transform: none;
}
}
标签:CSS3,动画,none,100%,transform,5s,animation,fadein,弹窗
From: https://www.cnblogs.com/tulintao/p/16955960.html