css+js实现可爱小清新时钟走动显示时间代码

代码语言:html

所属分类:布局界面

代码描述:css+js实现可爱小清新时钟走动显示时间代码

代码标签: css js 可爱 小清新 时钟 走动 显示 时间 代码

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">

<style>
    html {
  box-sizing: border-box;
}

html * {
  box-sizing: inherit;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(192,223,236);
}

.container {
  position: relative;
  margin: auto;
  display: block;
  width: 484px;
  height: 484px;
  margin-top: 10%
}
.container::after {
    content: "";
    position: absolute;
    mix-blend-mode: color-dodge;
    width: 450px;
    height: 150px;
    top: 20px;
    left: -700px;
    
    animation: window-2 25000ms linear 0s 1 normal;
}
@keyframes window-2 {
    0% {
        background-color: rgba(255,255,255, 0.2);
        top: 30%;
        left: -500px;
    }
    100% {
        background-color: rgba(255,255,255, 0.2);
        top: 30%;
        left: -.........完整代码请登录后点击上方下载按钮下载查看

网友评论0