//设置定位
.元素名{
position:absolute;
animation:changeplace 1s forwords;
}
//动画改变位置
@keyframes changeplace {
from{top :50px}
to{top:0}
}
CSS动画实现从下往上滚动
最新推荐文章于 2024-09-04 02:27:32 发布
//设置定位
.元素名{
position:absolute;
animation:changeplace 1s forwords;
}
//动画改变位置
@keyframes changeplace {
from{top :50px}
to{top:0}
}