css+js实现百叶窗式数字时间显示效果代码

代码语言:html

所属分类:布局界面

代码描述:css+js实现百叶窗式数字时间显示效果代码

代码标签: css js 百叶窗 数字 时间 显示

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
html {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
}

.clock {
  font-size: 45vmin;
  line-height: 0.8;
  position: static;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.clock-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  place-content: center;
  background: repeating-radial-gradient(circle at -150% -25%, #fff, #777 0.025em, #fff 0.05em);
  filter: contrast(2000%);
}

.numbers {
  font-size: 1em;
  filter: blur(0.0125em);
  transform: rotate(6deg);
  opacity: 0.46;
}

.hour {
  transform: translatex(0.2em);
}

.min {
  transform: translatex(-0.2em);
}

.clock-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  mix-blend-mode: lighten;
  pointer-events: none;
  ba.........完整代码请登录后点击上方下载按钮下载查看

网友评论0