css实现一个折叠纸飞机飞翔动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现一个折叠纸飞机飞翔动画效果代码

代码标签: 折叠 飞机 飞翔 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

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

body {
  background: #f1f1f1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.frame {
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 1px 1px 13px 2px #5d5d5d30;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transform: translateY(3vw);
  background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
}

.thread {
  width: 1px;
  height: 35vw;
  background: #80808061;
  position: absolute;
  left: 50%;
  top: 0;
  transform-origin: top;
}

.holder {
  width: 90%;
  height: 90%;
  position: relative;
  border-radius: 50%;
  animation: moveAll 3s ease-in-out 0s infinite alternate;
}

@keyframes moveAll {
  100% {
    transform: translateY(4vw);
  }
}
.part-1 {
  clip-path: polygon(0% 0%, 89% 0%, 64% 48%, -1% 71%);
  background: #c71d1d;
  width: 30vw;
  height: 25vw;
  position: absolute;
  top: 24vw;
  left: 26vw;
}

.part-2-wrap {
  filter: drop-shadow(9px 5px 10px rgba(0, 0, 0, 0.2)) drop-shadow(-9px 5px 10px rgba(0, 0, 0, 0.2));
  position: absolute;
  left: 0vw;
  top: 0vw;
  z-index: 6;
}

.part-2 {
  clip-path: polygon(21% 41%, 95% 56%, 100% 82%, 0% 92%);
  background: #e01c1c;
  background: #da1f1f;
  width: 23vw;
  height: 33vw;
  position: absolute;
  transform: rotate(344deg);
  left: 22vw;
  top: 8.6vw;
}

.part-3-wrap {
  filter: drop-shadow(-9px 0px 8px rgba(0, 0, 0, 0.3));
  position: absolute;
  left: 0vw;
  top: 0vw;
  z-index: 5;
}

.part-3 {
  background: #da1f1f;
  clip-path: polygon(40% 14%, 0% 100%, 100% 100%);
  width: 18vw;
  height: 22vw;
  position: absolute;
  left: 26.2vw;
  top: 2.6vw;
  z-index: 8;
  transform-origin: bottom;
  animation: fold-3 2s ease 0s infinite alternate;
}

@keyframes fold-3 {
  100% {
    transform: rotateX(38deg);
  }
}
.part-4-wrap {
  filter: drop-shadow(-8px 9px 12px rgba(0, 0, 0, 0.3));
  position: absolute;
  left: 0vw;
  top: 0vw;
  z-index: 3;
}

.part-4 {
  clip-path: polygon(100% .........完整代码请登录后点击上方下载按钮下载查看

网友评论0