css+js实现可调节健身圆环图表效果代码
代码语言:html
所属分类:图表
代码描述:css+js实现可调节健身圆环图表效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@layer properties {
@property --angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: true;
}
@property --percent {
syntax: "<percent>";
inherits: true;
initial-value: 0%;
}
}
:root {
--debug: 0;
--bg-background: hsl(218deg 5% 14%);
--angle: 0deg;
--percent: 0%;
--color-blue-1: hsla(160, 100%, 50%, 1);
--color-blue-2: hsla(186, 100%, 49%, 1);
--color-green-1: hsla(85, 100%, 50%, 1);
--color-green-2: hsla(69, 100%, 50%, 1);
--color-red-1: hsla(344, 96%, 53%, 1);
--color-red-2: hsla(336, 94%, 60%, 1);
}
*,
*:before,
*:after {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
outline: calc(var(--debug) * 1px) dotted hsl(calc(var(--debug) * 10 * 1deg), 60%, 60%);
}
html,
body,
main {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
background: var(--bg-backgro.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0