码迷,mamicode.com
首页 > 其他好文 > 详细

animation渐进实现点点点等待效果

时间:2018-05-18 15:37:25      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:line   100%   ica   his   bsp   hit   infinite   dde   ace   

<style>
   @keyframes dot {
    0% { width: 0; }
    33% { width: .2em; }
    66% { width: .5em; }
    100% { width: .8em; }
}
   .dot {
    display: inline-block;
    width: 20px;
    vertical-align: bottom;
    overflow: hidden;
    -webkit-animation: dot 3s infinite step-start;
}
</style>

 

<button>提交</button>
<script src="jquery-2.1.1.min.js"></script>
<script>
$("button").click(function(){
$(this).html("处理中<span class=‘dot‘>...<span>")
setTimeout(function(){
alert("网络慢...")
},10000)
})
</script>

 

animation渐进实现点点点等待效果

标签:line   100%   ica   his   bsp   hit   infinite   dde   ace   

原文地址:https://www.cnblogs.com/NatChen/p/9056093.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!