snap.svg实现环形进度条动画效果代码
代码语言:html
所属分类:进度条
代码描述:snap.svg实现环形进度条动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url(https://fonts.googleapis.com/css?family=Share+Tech); body { background: #efefef; } .container { width: 400px; height: 200px; position: relative; margin: auto; font-family: 'Share Tech', sans-serif; color: #444; } #percent, #svg { width: 200px; height: 200px; position: absolute; top: 0; left: 0; } #percent { line-height: 20px; height: 20px; width 100%; top: 90px; font-size: 43px; text-align: center; color: #3da08d; opacity: 0.8 } p, .btn { position: relative; left: 220px; width: 200px; display: block; text-transform: uppercase; font-size: 24px; top: 30px; } .btn { text-align: center; background: #5fc2af; color: #fff; width: 120px; height: 37px; line-height: 37px; cursor: pointer; } input { border: 0; outline: 0; border-bottom: 1px solid #eee; width: 30px; font-family: helvetica; font-size: 24px; text-transform: capitalise; font-family: 'Share Tech', sans-serif; background: transparent; } </style> </head> <body> <div class="container"> <div id="percent"></div> <svg id="svg"></svg> <p><label for="perc-input">Percent:</label><input maxleng.........完整代码请登录后点击上方下载按钮下载查看
网友评论0