js+css实现圆环时分秒进度时钟表示时间代码

代码语言:html

所属分类:其他

代码描述:js+css实现圆环时分秒进度时钟表示时间代码,不同颜色的圆环代表当前的时分秒。

代码标签: js css 圆环 进度 时钟 表示 时间 代码

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

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">

  <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Reddit+Mono:wght@200..900&display=swap" rel="stylesheet">


  
  
<style>
:root {
  --bg: #d1fffa;
  --light: #4aa9af;
  --mid: #3e31ae;
  --dark: #1c226b;
  --trans: rgba(255, 255, 255, .0);
}

section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
  background-color:  var(--bg);
}

.container {
  position: relative;
  aspect-ratio: 1;
  width: 50%;
  max-width: 400px;
  border-radius: 100%;
}

.face {
  --percent: 34%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  background:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0