Pure CSS Progress Chart

CSS Progress Circle

SCSS

.example {
text-align: center;
padding: 4em;
} .pie {
width: 60px;
height: 60px;
border-radius: 50%;
background: #eee;
background-image: linear-gradient(to right, transparent 50%, #4CC9D8 0);
position: relative;
display: inline-block;
margin: 10px;
} .pie::before {
content: '';
display: block;
margin-left: 50%;
height: 100%;
border-radius: 0 100% 100% 0 / 50%;
background-color: inherit;
transform-origin: left;
} .pie::after {
content: attr(data-value);
position: absolute;
width: 70%;
height: 70%;
margin: auto;
border-radius: 50%;
background-color: #fff;
left: 0;
right: 0;
top: 0;
bottom: 0;
text-align: center;
font: 900 20px/41px Tahoma;
} @for $i from 0 through 50 {
.pie[data-value="#{$i}"]:before {
transform: rotate(#{$i/100}turn);
}
} @for $i from 51 through 100 {
.pie[data-value="#{$i}"]:before {
background-color: #4CC9D8;
transform: rotate(#{$i/100 - .5}turn);
}
}


See the Pen Pure CSS Progress Chart by xgqfrms
(@xgqfrms) on CodePen.

refs

https://codepen.io/xgqfrms/pen/bGwGVOR?editors=1010



xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. 一篇很好的Java、C、PHP、前端、Android、IOS的文章
  2. 关于scale和zoom的区别
  3. 《Continuous Integration》读书笔记
  4. C#6.0新特性的尝试
  5. uva 10246(最短路变形)
  6. urlscan使用详解
  7. uva 10152 ShellSort
  8. Thinking in java——Generics
  9. Silverlight OOB 程序自动更新
  10. 虚拟器运行iOS8地图提示错误
  11. netcat
  12. TaskTracker执行map或reduce任务的过程2
  13. eclipse中git提交冲突问题
  14. ognl版本错误
  15. ORA-00904: "WMSYS"."WM_CONCAT": invalid identifier
  16. Python中的鸡肋多线程
  17. 故事描述SVM----支持向量机/support vector machine (SVM)
  18. js针对数组的操作
  19. try finally 执行顺序问题
  20. 配置Jenkins的slave节点的详细步骤适合windows等其他平台

热门文章

  1. uwsgi 启动django
  2. Redis 实战 —— 09. 实现任务队列、消息拉取和文件分发
  3. 浅析Linux进程空间布局
  4. 加密填补 填充 pad padding
  5. http状态码、错误分析
  6. python基础三---- time模块,函数的定义和调用
  7. HTML 5 学习第二课
  8. SpringBoot配置文件 application.properties,yaml配置
  9. spark-submit提交spark任务的具体参数配置说明
  10. 32.vsftpd服务程序--匿名开放模式