点状时钟效果

代码语言:html

所属分类:布局界面

代码描述:点状时钟效果

代码标签:

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


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

<style>
/*----vars---*/
/*----vars---*/
body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #e2e2e2;
}

.clock {
  border-radius: 100%;
  background: #ffffff;
  font-family: "Montserrat";
  border: 25px solid white;
  box-shadow: inset 2px 3px 8px 0 rgba(0, 0, 0, 0.1);
}

.wrap {
  overflow: hidden;
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 100%;
}

.second, .minute, .hour {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
  transform-origin: bottom center;
}

.minute,
.hour {
  height: 100px;
  width: 6px;
  margin: auto;
  top: -27%;
  background: black;
  t.........完整代码请登录后点击上方下载按钮下载查看

网友评论0