css+js实现百叶窗式数字时间显示效果代码
代码语言:html
所属分类:布局界面
代码描述: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, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0