div+css实现几何翻页动画立体效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现几何翻页动画立体效果代码

代码标签: div css 几何 翻页 动画 立体

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

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

<head>
  <meta charset="UTF-8">
  
  
  
<style>
:root {
  --color-light: #d8cbb1;
  --color-dark: #282624;
  --size: 60vmin;
  --speed: 5s;
}

body {
  display: grid;
  place-items: center;
  height: 100vh;
  margin: 0;
  background-color: var(--color-light);
  color: var(--color-dark);
}
body * {
  transform-style: preserve-3d;
}

.shape {
  display: grid;
  width: var(--size);
  height: var(--size);
}
.shape span {
  position: relative;
  z-index: -1;
  grid-row: 1/1;
  grid-column: 1/1;
  background-color: var(--color-dark);
  animation: flipAnim var(--speed) linear infinite;
}
.shape span:nth-child(1), .shape span:nth-child(1):after {
  animation-delay: 0.2s;
}
.shape span:nth-child(2), .shape span:nth-child(2):after {
  animation-delay: 0.4s;
}
.shape span:nth-child(3), .shape span:nth-child(3):after {
  animation.........完整代码请登录后点击上方下载按钮下载查看

网友评论0