更多>
最新下载
24小时阅读排行榜
- 1 ios怎样调用html5二维码生成_ios生成二维码html5法【步骤】
- 2 html5播放rtspios低版本兼容吗_html5低版ios播rtsp法【适配】
- 3 Go语言中为嵌套指针切片 *[]Rows 赋值的完整指南
- 4 如何在 Laravel 8 中按字段名获取结构化 JSON 错误响应
- 5 html5可视化编辑怎么加loading效果_html5可视化loading添加教程【方案】
- 6 tcp_max_syn_backlog 调到 65535 后仍大量 SYN_RECV 的隐藏原因分析
- 7 Linux 内核态崩溃的常见原因
- 8 html5怎么检测图片尺寸_html5获取宽高方法【技巧】
- 9 html5可视化编辑怎么实现视差滚动_html5可视化视差滚动法【方案】
- 10 html5可视化编辑怎么加返回顶部_html5可视化返回顶部教程【步骤】
- 11 如何使用 CSS 实现覆盖在图片上的全宽响应式搜索框
- 12 html5滤镜怎样加动态波纹_html5动态波纹滤镜法【步骤】
- 13 如何在 Python 数据类继承中为父类必需字段设置子类默认值
- 14 fastapi BackgroundTasks 如何在异常时保证任务执行完成
- 15 Python 3.11+ 的 ExceptionGroup 如何在 asyncio.gather 中捕获
更多>
最新教程
-
- Node.js 教程
- 16279 2025-08-28
-
- CSS3 教程
- 1546925 2025-08-27
-
- Rust 教程
- 23408 2025-08-27
-
- Vue 教程
- 25852 2025-08-22
-
- PostgreSQL 教程
- 22345 2025-08-21
-
- Git 教程
- 9308 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
