更多>
最新下载
24小时阅读排行榜
- 1 javascript数组有哪些方法_如何高效地操作数组数据【教程】
- 2 javascript如何实现深拷贝_有哪些方法可以复制对象和数组【教程】
- 3 AWS Lambda 中数据库读写不一致问题的根源与解决方案
- 4 如何解决PHP表单需提交两次才能获取$_FILES数据的问题
- 5 ulimit -n 1024 但实际打开文件远超的 pam_limits 配置坑
- 6 什么是javascript中的严格模式_怎样启用并避免常见错误【教程】
- 7 Linux 防火墙规则失效的原因
- 8 html5可视化编辑怎么加背景音乐_html5可视化音乐插入法【步骤】
- 9 javascript如何实现浏览器指纹识别【教程】
- 10 如何将按行分组的文本文件高效转换为结构化 CSV 文件
- 11 模块化是什么_如何导入导出JavaScript模块【教程】
- 12 javascript如何使用async_await_它如何简化异步代码【教程】
- 13 javascript如何扁平化数组_有哪些方法可以使用【教程】
- 14 javascript模块如何导入导出_es6模块与commonjs有何不同【教程】
- 15 javascript事件循环机制是怎样工作的【教程】
更多>
最新教程
-
- Node.js 教程
- 16276 2025-08-28
-
- CSS3 教程
- 1546915 2025-08-27
-
- Rust 教程
- 23407 2025-08-27
-
- Vue 教程
- 25851 2025-08-22
-
- PostgreSQL 教程
- 22344 2025-08-21
-
- Git 教程
- 9306 2025-08-21
CSS3圆形进度条动画效果
<style>
body{background-color: #fff}
@-webkit-keyframes load {
0% {
stroke-dashoffset: 0;
}
}
@keyframes load {
0% {
stroke-dashoffset: 0;
}
}
.progress {
position: relative;
display: inline-block;
padding: 0;
text-align: center;
}
.progress > li {
display: inline-block;
position: relative;
text-align: center;
color: #93A2AC;
font-family: Lato;
font-weight: 100;
margin: 2rem;
}
.progress > li:before {
content: attr(data-name);
position: absolute;
width: 100%;
bottom: -2rem;
font-weight: 400;
}
.progress > li:after {
content: attr(data-percent);
position: absolute;
width: 100%;
top: 3.7rem;
left: 0;
font-size: 2rem;
text-align: center;
}
.progress svg {
width: 10rem;
height: 10rem;
}
.progress svg:nth-child(2) {
position: absolute;
left: 0;
top: 0;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.progress svg:nth-child(2) path {
fill: none;
stroke-width: 25;
stroke-dasharray: 629;
stroke: #fff;
opacity: .9;
-webkit-animation: load 10s;
animation: load 10s;
}
</style>
body{background-color: #fff}
@-webkit-keyframes load {
0% {
stroke-dashoffset: 0;
}
}
@keyframes load {
0% {
stroke-dashoffset: 0;
}
}
.progress {
position: relative;
display: inline-block;
padding: 0;
text-align: center;
}
.progress > li {
display: inline-block;
position: relative;
text-align: center;
color: #93A2AC;
font-family: Lato;
font-weight: 100;
margin: 2rem;
}
.progress > li:before {
content: attr(data-name);
position: absolute;
width: 100%;
bottom: -2rem;
font-weight: 400;
}
.progress > li:after {
content: attr(data-percent);
position: absolute;
width: 100%;
top: 3.7rem;
left: 0;
font-size: 2rem;
text-align: center;
}
.progress svg {
width: 10rem;
height: 10rem;
}
.progress svg:nth-child(2) {
position: absolute;
left: 0;
top: 0;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.progress svg:nth-child(2) path {
fill: none;
stroke-width: 25;
stroke-dasharray: 629;
stroke: #fff;
opacity: .9;
-webkit-animation: load 10s;
animation: load 10s;
}
</style>
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
