星空网 > 软件开发 > 网页设计

CSS3实现了提交按钮等待打点循环效果

CSS3实现了提交按钮等待打点循环效果:
本章节分享一段代码实例,它实现了提交按钮打点等待效果。
这样的效果是比较人性化的,可以让用户很容易的指导,网页是在工作中,只需要耐心等待就可以。
代码实例如下:

<!DOCTYPE html><html><head><meta charset=" utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><style type="text/css">.grebtn { display:inline-block; padding:0.25em 1.25em; border:1px solid; border-radius:2px; vertical-align:bottom; font-weight:inherit; border-color:#208000 #1F7F00; background-color:#289600; box-shadow:inset 0 0 1px rgba(255,255,255,.6), 0 1px #8DBF62; color:#fff; text-shadow:0 -1px #137900; text-decoration:none; }.dotting { display:inline-block; min-width:2px; min-height:2px; box-shadow:2px 0 currentColor, 6px 0 currentColor, 10px 0 currentColor; -webkit-animation:dot 4s infinite step-start both; animation:dot 4s infinite step-start both; *zoom: expression(this.innerHTML = '...'); /* IE7 */}.dotting:before { content: '...'; } /* IE8 */.dotting::before { content: ''; }:root .dotting { margin-right: 8px; } /* IE9+,FF,CH,OP,SF */ @-webkit-keyframes dot { 25% { box-shadow: none; } 50% { box-shadow: 2px 0 currentColor; } 75% { box-shadow: 2px 0 currentColor, 6px 0 currentColor; }}@keyframes dot { 25% { box-shadow: none; } 50% { box-shadow: 2px 0 currentColor; } 75% { box-shadow: 2px 0 currentColor, 6px 0 currentColor; }}</style><head></head><body><a href="javascript:" class="grebtn">订单提交中<span class="dotting"></span></a></body></html>

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=18233

更多内容可以参阅:http://www.softwhy.com/divcss/




原标题:CSS3实现了提交按钮等待打点循环效果

关键词:CSS

CSS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

Shadowfax:https://www.goluckyvip.com/tag/2671.html
UEESHOP自建站系统:https://www.goluckyvip.com/tag/26710.html
ufactory:https://www.goluckyvip.com/tag/26711.html
UGallery:https://www.goluckyvip.com/tag/26712.html
UGC视频:https://www.goluckyvip.com/tag/26713.html
Ugly Drinks:https://www.goluckyvip.com/tag/26714.html
TikTok 将推出先买后付服务 :https://www.goluckyvip.com/news/188219.html
深圳有没有比较好玩的景点 深圳有没有比较好玩的景点推荐一下:https://www.vstour.cn/a/366175.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流