css进行中打点效果

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>进行中...</title>
<style>
dot {
  display:inline-block; 
  width:3ch;
  text-indent:-1ch;
  vertical-align:bottom; 
  overflow:hidden;
  animation:dot 3s infinite step-start both;
}
@keyframes dot {
  33% { text-indent: 0; }
  66% { text-indent: -2ch; }
}
</style>
</head>
<body>
<a href="javascript:">进行中<dot>...</dot></a>
</body>
</html>

  

posted @ 2017-07-14 17:27  <_/>  阅读(736)  评论(0编辑  收藏  举报