更多>
最新下载
24小时阅读排行榜
- 1 如何防止表单在 JavaScript 确认逻辑未通过时重复提交
- 2 SQL 如何避免幻读(Phantom Read)在不同隔离级别下的表现
- 3 html5滤镜怎样模拟景深_html5景深滤镜css技巧【技巧】
- 4 html5布局代码圣杯布局原理_html5布局代码圣杯布局解析【原理】
- 5 如何在 WooCommerce 中实现订阅产品加入购物车后自动跳转至结算页
- 6 html5怎么实现图片噪点去除_html5降噪处理教程【技巧】
- 7 veth 接口残留的 docker network prune 与 containerd 清理
- 8 实现 Go 语言中的 Ruby 风格笛卡尔积运算
- 9 Laravel中如何优雅地处理API版本控制? (路由分组策略)
- 10 html5嵌入音频播放没声音_html5嵌入音频开声设置【方案】
- 11 html5滤镜怎么加彩虹渐变_html5彩虹滤镜应用教程【技巧】
- 12 html5播放rtsp需什么插件_html5播放rtsp插件选择【方案】
- 13 Python 观察者模式实现示例
- 14 Python 异常滥用带来的性能与维护问题
- 15 typing.Self 如何在 Python 3.11 前用 typing_extensions 回退
更多>
最新教程
-
- Node.js 教程
- 16285 2025-08-28
-
- CSS3 教程
- 1546933 2025-08-27
-
- Rust 教程
- 23413 2025-08-27
-
- Vue 教程
- 25856 2025-08-22
-
- PostgreSQL 教程
- 22351 2025-08-21
-
- Git 教程
- 9310 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
