分享一段代码代码实例,它利用css实现了进行中打点效果。
比如提交进行中,视频下载进行中的打点效果。
代码实例如下:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="author" content="http://www.pipipi.net/" /> <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>
css进行中打点效果代码实例,这样的场景在实际项目中还是用的比较多的,关于css进行中打点效果代码实例就介绍到这了。
css进行中打点效果代码实例属于前端实例代码,有关更多实例代码大家可以查看。
本文地址: http://www.zzsi.net/code/web/98448.html
本站部分资源来源与网络,仅供学习参考使用,请勿商用,如侵犯了您的权益,请联系我们删除。