原生js实现一个动态进度条动画效果代码
代码语言:html
所属分类:进度条
代码描述:原生js实现一个动态进度条动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <head> <meta charset="UTF-8"> <title>process</title> <style> body{ background: white; margin: 70px; } html { font-size: 62.5%; } .bg_fff { background-color: #fff; } .xui-wrapper { margin:0 auto; width:100%; max-width:450px; /*height:100vh;*/ background-color:#efeff4; } .xui-myPromption-wrapper .xui-returnCommission .xui-process { position: relative; display: inline-block; vertical-align: middle; padding: 28px 0 12px; width: 76%; } .xui-myPromption-wrapper .xui-process .xui-icon-flag { position: absolute; top: 10px; left: 0; width: 12px; height: 18px; background-size: 11px; } .xui-myPromption-wrapper .xui-process .xui-process-static { width: 100%; height: 15px; border-radius: 10px; -webkit-box-shadow: 0 0 5px rgba(0, 198, 255,.6); box-shadow: 0 0 5px rgba(0, 198, 255,.6); background-color: rgba(0, 198, 255,.6); } .xui-myPromption-wrapper .xui-process .xui-process-active { position: absolute; top: 28px; left: 0; width: 0; height: 14px; border: 1px solid #4dafe2; border-radius: 10px; background-image: linear-gradient(60deg, transparent 0rem, transparent 0.8rem, #4dafe2 0.8rem, #4dafe2 1.6rem, transparent 1.6rem, transparent 2.4rem, #4dafe2 2.4rem); background-color: #008cd5; background-size: 20px 38px; -box-shadow: box-shadow: 1px 1px 5px rgba(0, 140, 213, .8); box-shadow: 1px 1px 5px rgba(0, 140, 213, .8); -webkit-animation: process 800ms infinite linear; animation: process 800ms infinite linear; } .xui-m.........完整代码请登录后点击上方下载按钮下载查看
网友评论0