更多>
最新下载
24小时阅读排行榜
- 1 GraphQL如何处理文件上传 与XML数据结合的最佳实践
- 2 css 外链样式表路径写错怎么排查_排查 css 引入失败方法
- 3 php页面渐变能配合表单高亮吗_php页面表单渐变高亮法【教程】
- 4 ebXML电子商务XML标准介绍
- 5 CircleCI/Travis CI如何配置XML测试报告的上传
- 6 c++中如何判断一个数是否为奇数_c++按位与运算判断奇偶性【详解】
- 7 C++ 智能指针shared_ptr C++引用计数与自动内存管理【C++11】
- 8 mysql事务和锁有什么关系_mysql事务锁机制说明
- 9 ios如何调用html5推送通知_ios调用html5推送设置法【技巧】
- 10 css 网格布局中模块重叠怎么办_检查 grid line 设置是否冲突
- 11 怎么在Excel中开发自定义XML映射
- 12 C#怎么实现装饰器模式 C#设计模式之装饰器模式教程
- 13 MAUI项目如何进行CI/CD MAUI DevOps部署流程
- 14 php多维数组转一维统计个数_php降维后count计数法【教程】
- 15 XML实体是什么 如何用它来定义常用字符快捷方式
更多>
最新教程
-
- Node.js 教程
- 16109 2025-08-28
-
- CSS3 教程
- 1546525 2025-08-27
-
- Rust 教程
- 23246 2025-08-27
-
- Vue 教程
- 25717 2025-08-22
-
- PostgreSQL 教程
- 22199 2025-08-21
-
- Git 教程
- 9186 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
