dayjs实现泡泡果冻型数字时钟倒计时代码

代码语言:html

所属分类:布局界面

代码描述:dayjs实现泡泡果冻型数字时钟时间倒计时代码

代码标签: dayjs 泡泡 果冻 数字 时钟 时间 倒计时 代码

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

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

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

  
  
<style>
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bubble_number {
  display: flex;
  align-items: flex-end;
}
.bubble_number__item {
  width: 80px;
  margin: 0 -6px;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-image: url("//repo.bfw.wiki/bfwrepo/icon/651f639178168.png");
}
.bubble_number__item:before {
  content: "";
  display: block;
  padding-bottom: 120%;
}
.bubble_number__text {
  color: #fff;
  padding: 0 10px;
}
</style>


  
</head>

<body translate="no">
  <div class="bubble_number" data-counttime="2023-10-16 12:34:56">
  <div class="bubble_number__item"></div>
  <div class="bubble_number__item"></div>
  <div class="bubble_number__text">天</div>
  <div class="bubble_number__item"></div>
  <div class="bubble_number__item"></div>
  <div class="bubble_number__text">時</div>
  <div class="bubble_number__item"></div>
  <div class="bubble_number__item"></div>
  <div class="bubble_number__text">分</div>
  <div class="bubble_number__item"></div>
  <div class="bubble_number__item"></div>
  <div class="bubble_number__text">秒</div>
</div>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/dayjs@1.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/relativeTime.js"></script>
      <script  >
  cons.........完整代码请登录后点击上方下载按钮下载查看

网友评论0