vue倒计时圆环进度效果代码
代码语言:html
所属分类:进度条
代码描述:vue倒计时圆环进度效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> </head> <body style="padding:100px;background:white;"> <div id="app"> <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" :width="width" :height="width" > <circle cx="50%" cy="50%" :r="100 - border / 2" fill="none" opacity="0.4" :stroke="color" :stroke-width="border" /> <circle cx="50%" cy="50%" :r="100 - border / 2" fill="none" transform="rotate(270,100,100)" :stroke="color" :stroke-width="border" :stroke-dasharray="dashLen" :stroke-dashoffset = "dashOffset" style="transition: stroke-dashoffset 0.4s" /> <text x="50%" y="50%" text-anchor="middle" :font-size="fontSize" :fill="color" dy="0.3em" > {{ countDown }} </text> </svg> </div> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue.2.2.min.js"></script> <script> new Vue({ el: '#app', propsData: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0