css+js实现加载数字圆环进度条动画效果代码

代码语言:html

所属分类:进度条

代码描述:css+js实现加载数字圆环进度条动画效果代码,通过js的setinterval来实现进度条数字的变动。

代码标签: css js 加载 数字 圆环 进度条 动画

下面为部分代码预览,完整代码请点击下载或在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;
  justify-content: center;
  background: linear-gradient(132deg, #1dbdff, #4cff6e, #fa057e, #fdfc47, #24fe41);
  background-size: 600% 600%;
  -webkit-animation: bk 10s ease infinite;
  -moz-animation: bk 10s ease infinite;
  animation: bk 5s ease infinite;
}
.container .card .center {
  width: 315px;
  height: 315px;
  border-radius: 50%;
  background: linear-gradient(145deg, #202020, #252525);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.container .card .center h1 {
  margin-top: -5px;
  font-size: 5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
}
.container .card .center h2 {
  margin-top: -20px;
  padding-bo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0