d3实现概念时钟指示效果
代码语言:html
所属分类:动画
代码描述:d3实现概念时钟指示效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background: #454555;
}
.polar-gantt {
width: 320px;
height: 320px;
margin: 20px auto 0;
}
.polar-gantt svg {
width: 100%;
height: 100%;
}
.polar-gantt svg .hours-hand,
.polar-gantt svg .minutes-hand,
.polar-gantt svg .seconds-hand {
stroke-linecap: round;
stroke: rgba(255, 255, 255, 0.5);
}
.polar-gantt svg .hours-hand {
stroke-width: 3;
}
.polar-gantt svg .minutes-hand {
stroke-width: 2;
}
.polar-gantt svg .seconds-hand {
stroke-width: 1;
}
.polar-gantt svg .hands-cover {
fill: #fff;
}
.polar-gantt svg .hours-tick {
stroke: #fff;
}
.polar-gantt svg .hours-label {
font-size: 10px;
fill: rgba(255, 255, 255, 0.5);
}
</style>
</head>
<body translate="no">
<div class=&.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0