css实现一个进度条效果

代码语言:html

所属分类:表单美化

代码描述:css实现一个进度条效果

代码标签: 进度 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
body {
  background: #eeeeee;
  font-family: Roboto;
}
.progress {
  width: 200px;
  height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.progress:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: #eeeeee;
  border-radius: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99;
}
.progress .precent {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 99;
  transform: translate(-50%, -50%);
  font-size: 35px;
  color: #214c8b;
}
.progress .circle {
  width: 200px;
  height: 200px;
  background-image: linear-gradient(135deg, #5efce8 10%, #736efe 100%);
  -webkit-clip-path: polygon(
    0% 1.........完整代码请登录后点击上方下载按钮下载查看

网友评论0