单个div+css实现三维饼状图动画效果代码

代码语言:html

所属分类:图表

代码描述:单个div+css实现三维饼状图动画效果代码

代码标签: 单个 div css 三维 饼状图 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<html lang="en"><head>
  <meta charset="UTF-8">
  

  
<style>
body, html {
  width: 100%;
  height: 100%;
  display: flex;
  background: #032171;
}

@property --per {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
#loading {
  position: relative;
  margin: auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform: perspective(350px);
}
#loading::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 50px;
  border-radius: 50%;
  transform: rotateX(-125deg);
  background: conic-gradient(#03b6fd, #3F51B5, #03b6fd);
  -webkit-mask: radial-gradient(transparent, transparent 129px, #000 130px), repeating-conic-gradient(#000, #000 13deg, transparent 13deg, transparent 15deg), conic-gradient(transparent, transparent var(-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0