css+js实现新年倒计时效果代码

代码语言:html

所属分类:其他

代码描述:css+js实现新年倒计时效果代码

代码标签: css js 新年 倒计时 代码

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

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

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

  
  
<style>
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@600&display=swap');
@property --days {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --hours {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --minutes {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --seconds {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  align-content: start;
  background: oklch(0.2 0.03 285);
  color: oklch(0.95 0.03 285);
  display: grid;
  font-family: system-ui, sans-serif;
  margin-inline:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0