时间:2021-07-01 10:21:17 帮助过:61人阅读
html
- <div class="ui-loading-wrap">
- <p>加载中</p>
- <i class="ui-loading"></i>
- </div>
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
- }
- }
图片地址:
以上就是使用css实现加载中动画效果的详细内容,更多请关注Gxl网其它相关文章!