div+css实现环形点状亮色暗色切换的loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:div+css实现环形点状亮色暗色切换的loading加载动画效果代码

代码标签: div css 环形 点状 亮色 暗色 切换 loading 加载 动画

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

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

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

  
  
  
<style>
:root {
  --w: #fafafa;
  --b: #141414;
  --s: 1s;
  --d: calc(var(--s) / 6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

input {
  width: 100vw;
  height: 100vh;
  position: absolute;
  z-index: 4;
  opacity: 0;
  cursor: pointer;
}
input:checked ~ div {
  filter: invert(1);
}
input:checked + .bg:before {
  content: "CLICK TO DARK";
}

.bg:before {
  content: "CLICK TO LIGHT";
  position: absolute;
  color: var(--w);
  width: 100%;
  text-align: center;
  bottom: 10vh;
  font-family: Arial, Helvetica, serif;
  font-size: 12px;
  text-shadow: 0 0 1px var(--w);
  opacity: 0.25;
}

body, .content, .dots {
  displ.........完整代码请登录后点击上方下载按钮下载查看

网友评论0