css+js实现加载数字圆环进度条动画效果代码
代码语言:html
所属分类:进度条
代码描述:css+js实现加载数字圆环进度条动画效果代码,通过js的setinterval来实现进度条数字的变动。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
<style>
.container {
font-family: "DM Mono", monospace;
width: 100vw;
height: 100vh;
background: #232323;
position: relative;
}
.container .card-box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.container .card {
border-radius: 0px;
background: linear-gradient(145deg, #202020, #252525);
box-shadow: 31px 31px 62px #191919, -31px -31px 62px #2e2e2e;
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 350px;
height: 350px;
border-radius: 50%;
}
.container .card:before {
content: "";
width: 350px;
height: 350px;
left: 2px;
z-index: -1;
position: absolute;
border-radius: 50%;
background: linear-gradient(145deg, #202020, #252525);
box-shadow: 33px 33px 80px #0e0e0e, -33px -33px 80px #383838;
}
.container .card .inner {
width: 330px;
height: 330px;
border-radius: 50%;
display: flex;
align-items: center;
j.........完整代码请登录后点击上方下载按钮下载查看
网友评论0