更多>
最新下载
24小时阅读排行榜
- 1 如何在Golang中优化RPC调用效率_Golang RPC性能优化实践
- 2 php统计数据图表颜色自定义_php配色数组设置法【步骤】
- 3 c# Barrier 和 CountdownEvent 的区别 c#多线程同步
- 4 Go语言如何对数据库进行测试_DB测试方案分析
- 5 XML上传的日志记录 应该记录哪些关键信息
- 6 C# 文件和目录的监视 - FileSystemWatcher的使用
- 7 php实现班级通信录怎么导入嵌套数组_php解析数组填通信录【步骤】
- 8 Go测试如何防止全局变量影响_测试隔离思路讲解
- 9 XSLT如何根据条件改变输出 xsl:if和xsl:choose
- 10 css 布局中 footer 无法贴底怎么办_使用 css 布局实现底部固定
- 11 php二维转一维保留首次键_php二维转一维首键优先法【步骤】
- 12 C# 日期时间格式化方法 C#如何格式化DateTime
- 13 html5能直接播放rtsp吗_html5不能直接播rtsp原因【原理】
- 14 javascript函数如何定义_它们怎样提升代码复用性【教程】
- 15 C++ socket编程怎么做 C++网络编程TCP通信代码实现【网络】
更多>
最新教程
-
- Node.js 教程
- 16117 2025-08-28
-
- CSS3 教程
- 1546542 2025-08-27
-
- Rust 教程
- 23250 2025-08-27
-
- Vue 教程
- 25723 2025-08-22
-
- PostgreSQL 教程
- 22206 2025-08-21
-
- Git 教程
- 9192 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
