div+css实现蓝天白云大风车鸟儿飞翔动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现蓝天白云大风车鸟儿飞翔动画效果代码

代码标签: div css 蓝天 白云 大风车 鸟儿 飞翔 动画

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


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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
* {
  margin: 0;
  padding: 0;
}
*, *:after, *:before {
  box-sizing: border-box;
}

.wrapper {
  padding: 20px;
  background-color: #fff;
  min-height: 100vh;
}

.card {
  width: 700px;
  height: 525px;
  position: relative;
  margin: 0px auto;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 20px 20px -5px rgba(0, 0, 0, 0.3);
}

picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 1;
  overflow: hidden;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(#354d8b, #daa85f);
}
.background:after {
  content: "";
  position: absolute;
  display: block;
  top: 10%;
  height: 90%;
  width: 110%;
  left: -5%;
  transform: rotate(2deg);
  background: linear-gradient(transparent 1%, rgba(235, 178, 109, 0.1) 10%, rgba(235, 178, 109, 0.4) 100%);
}
.background:before {
  content: "";
  position: absolute;
  display: block;
  top: 40%;
  height: 60%;
  width: 110%;
  left: -5%;
  transform: rotate(-2deg);
  background: linear-gradient(transparent 1%, rgba(235, 178, 109, 0.1) 10%, rgba(235, 178, 109, 0.4) 100%);
}

.mill {
  position: absolute;
  z-index: 2;
  bottom: 14%;
  left: 44%;
  width: 24%;
  height: 50%;
}
.mill-main {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  height: 83%;
  z-index: 2;
}
.mill-main-base {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  -webkit-clip-path: polygon(19% 0%, 85% 0%, 99% 100%, 0% 100%);
          clip-path: polygon(19% 0%, 85% 0%, 99% 100%, 0% 100%);
}
.mill-main-base:after {
  content: "";
  display: block;
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-85deg, #fcb281, #f3c9b0, #f3c9b0, #f6ba9e);
  -webkit-clip-path: polygon(14.8% 8%, 85% 8%, 99% 100%, 0% 100%);
          clip-path: polygon(14.8% 8%, 85% 8%, 99% 100%, 0% 100%);
}
.mill-main-base-shadow {
  background-color: #8f8190;
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  -webkit-clip-path: polygon(71.7% 8%, 82% 6%, 86% 8%, 100% 100%, 83% 100%, 78% 15%, 71.7% 13%);
          clip-path: polygon(71.7% 8%, 82% 6%, 86% 8%, 100% 100%, 83% 100%, 78% 15%, 71.7% 13%);
}
.mill-main-base-shadow:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0%;
  right: 0%;
  width: 5%;
  height: 30%;
  background-color: #40465c;
  border-radius: 50% 0 0 0;
  transform: rotate(-8deg);
}
.mill-main-base-shadow:before {
  content: "";
  display: block;
  position: absolute;
  right: 3%;
  bottom: 32%;
  width: 3%;
  height: 3%;
  background-color: #04071a;
  border-radius: 50%;
  transform: rotate(-9deg) rotateY(50deg);
}
.mill-main-base-circle {
  content: "";
  display: block;
  position: absolute;
  top: 12%;
  left: 15%;
  width: 71%;
  border-radius: 50%;
  height: 13%;
  background: linear-gradient(-85deg, #fcb281, #f3c9b0, #f3c9b0, #f6ba9e);
  transform: rotate(1deg);
  overflow: hidden;
}
.mill-main-base-circle:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  background-color: #8f8190;
}
.mill-main-window {
  position: absolute;
  top: 0;
  left: 0;
  background-color: black;
  z-index: 2;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.mill-main-window:after {
  content: "";
  display: block;
  position: absolute;
  top: 30%;
  left: 0;
  height: 40%;
  width: 100%;
  border-top: 1px solid #323a53;
  border-bottom: 1px solid #323a53;
}
.mill-main-window:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 25%;
  height: 100%;
  width: 50%;
  border-left: 1px solid #323a53;
  border-right: 1px solid #323a53;
}
.mill-main-window__1 {
  top: 17%;
  left: 21%;
  width: 5%;
  height: 9%;
  transform: skewY(-14deg) rotate(5deg);
  background: linear-gradient(140deg, #935b38, #30150e);
}
.mill-main-window__2 {
  top: 37%;
  left: 22%;
  width: 7%;
  height: 10%;
  transform: skewY(-10deg) rotate(5deg);
  background: linear-gradient(140deg, #935b38, #30150e);
}
.mill-main-window__3 {
  top: 70%;
  left: 7%;
  width: 3%;
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0