css3加载中动画效果,使用css实现加载中动画效果

css实现加载中动画效果如下:

220d237c136f69229b322a3d1c87ab64.png

html

加载中

css.ui-loading-wrap {

display: -webkit-box;

-webkit-box-pack: center;

-webkit-box-align: center;

text-align: center;

height: 40px;

.ui-loading {

width: 20px;

height: 20px;

display: block;

background: url(../img/loading_sprite.png);

-webkit-background-size: auto 20px;

-webkit-animation: am-rotate 1s steps(12) infinite;

@-webkit-keyframes am-rotate {

from {

background-position: 0 0

}

to {

background-position: -240px 0

}

}

图片地址:

469f1e5f672e346b26d3d8323e0e6a2c.png

你可能感兴趣的:(css3加载中动画效果)