纯css实现平尼视觉效果

代码语言:html

所属分类:视觉差异

代码描述:纯css实现平尼视觉效果

代码标签: 平尼 视觉 效果

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


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

<style>
body {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
  height: 100vh;
  background: #000;
}

.box {
  position: relative;
  width: 50vmin;
  height: 50vmin;
  -webkit-animation: spin 4s linear infinite;
          animation: spin 4s linear infinite;
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.r,
.g,
.b {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-animation: triangle 3s ease-in-out infinite;
          animation: triangle 3s ease-in-out infinite;
  mix-blend-mode: screen;
}

.r {
  background: red;
  -webkit-animation-delay: 0s;
          animation-delay: 0s;
}

.g {
  background: lime;
  -webkit-animation-delay: -1s;
          animation-delay: -1s;
}

.b {
  background: blue;
  -webkit-animation-delay: -2s;
         .........完整代码请登录后点击上方下载按钮下载查看

网友评论0