单个div+css实现可爱小狗折纸步骤教程代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css实现可爱小狗折纸步骤教程代码

代码标签: 单个 div css 可爱 小狗 折纸 步骤 教程 代码

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

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

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


  
<style>
div, div:before, div:after {
  display: block;
  content: "";
  position: absolute;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(#ededed, #c6c6c6);
}

div.handmade {
  width: 100vmin;
  height: 100vmin;
  display: flex;
  margin: 0 auto;
  position: relative;
}

div.handmade:before {
  width: 30vmin;
  height: 20vmin;
  top: 72vmin;
  left: 56vmin;
  transform: scale(3.8) rotate(3deg);
  z-index: 999;
  background: radial-gradient(ellipse at 50% 10%, #020202 0.75vmin, transparent 0.75vmin) calc(-2vmin + 15vmin) calc(-10vmin + 21vmin)/2vmin 1vmin no-repeat, radial-gradient(ellipse, #020202 0.5vmin, transparent 0.5vmin) calc(-2vmin + 13vmin) calc(-10vmin + 18vmin)/2vmin 2.5vmin no-repeat, radial-gradient(ellipse, #020202 0.5vmin, transparent 0.5vmin) calc(-2vmin + 16.75vmin) calc(-10vmin + 18vmin)/2vmin 2.5vmin no-repeat, linear-gradient(-50deg, transparent 7vmin, #dc6a45, 7.25vmin, transparent 8vmin) calc(-2vmin + 13.25vmin) calc(-10vmin + 19.5vmin)/7.5vmin 5.5vmin no-repeat, linear-gradient(50deg, transparent 7vmin, #dc6a45, 7.25vmin, transparent 8vmin) calc(-2vmin + 11.25vmin) calc(-10vmin + 19.5vmin)/7.5vmin 5.5vmin no-repeat, linear-gradient(50deg, #fc9467 2vmin, #dc6a45 2.15vmin, #dc6a45 2.25vmin, transparent 2.3vmin) calc(-2vmin + 16vmin) calc(-10vmin + 8vmin)/15vmin 15vmin no-repeat, linear-gradient(-50deg, #fc9467 2vmin, #dc6a45 2.15vmin, #dc6a45 2.25vmin, transparent 2.3vmin) calc(-2vmin + 1vmin) calc(-10vmin + 8vmin)/15vmin 15vmin no-repeat, linear-gradient(-130deg, transparent 7vmin, #dc6a45, 7.25vmin, transparent 8vmin) calc(-2vmin + 17.5vmin) calc(-10vmin + 13vmin)/7.5vmin 7vmin no-repeat, linear-gradient(-130deg, #fc9467 4vmin, #dc6a45 4.75vmin, transparent 4.75vmin) calc(-2vmin + 8.5vmin) calc(-10vmin + 15vmin)/15vmin 15vmin no-repeat, linear-gradient(130deg, transparent 7vmin, #dc6a45, 7.25vmin, transparent 8vmin) calc(-2vmin + 7vmin) calc(-10vmin + 13vmin)/7.5vmin 7vmin no-repeat, linear-gradient(130deg, #fc9467 4vmin, #dc6a45 4.75vmin, transparent 4.75vmin) calc(-2vmin + 8.5vmin) calc(-10vmin + 15vmin)/15vmin 15vmin no-repeat, linear-gradient(-135deg, #fc9467 7.5vmin, transparent 7.75vmin) calc(-2vmin + 8.5vmin) calc(-10vmin + 15vmin)/7.5vmin 8.5vmin no-repeat, linear-gradient(135deg, #fc9467 7.5vmin, transparent 7.75vmin) calc(-2vmin + 16vmin) calc(-10vmin + 15vmin)/7.5vmin 8.5vmin no-repeat, linear-gradient(135deg, transparent 7vmin, #a0a0a0 7.5vmin, transparent 8vmin) calc(-2vmin + 5.35vmin) calc(-10vmin + 14.75vmin)/7.5vmin 7vmin no-repeat, linear-gradient(135deg, transparent 7vmin, #a0a0a0 7.5vmin, transparent 8vmin) calc(-2vmin + 14.75vmin) calc(-10vmin + 16.5vmin)/7.5vmin 7vmin no-repeat, linear-gradient(-90deg, transparent 7vmin, #a0a0a0 7.5vmin, transparent 8vmin) calc(-2vmin + 23.5vmin) calc(-10vmin + 15.25vmin)/7.5vmin 7vmin no-repeat;
}

div.handmade:after {
  width: 100vmin;
  height: 70vmin;
  opacity: 0.7;
  top: 2vmin;
  left: -8vmin;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transform: rotate(-10deg);
  background: linear-gradient(-45deg, #2d2d2d 1.75vmin, transparent 1vmin) calc(0vmin + 12vmin) calc(4vmin + 2vmin)/4vmin 6vmin no-repeat, radial-gradient(ellipse at 150% 30%, transparent 4vmin, #2d2d2d 4vmin, #2d2d2d 4.75vmin, transparent 1vmin) calc(0vmin + 8.5vmin) calc(4vmin + 2vmin)/7vmin 11vmin no-repeat, linear-gradient(transparent 7.5vmin, #347a8d 7.5vmin, #347a8d 7.75vmin, transparent 7.75vmin) calc(0vmin + 5vmin) calc(4vmin + 7.25vmin)/22vmin 15vmin no-repeat, linear-gradient(-45deg, #74b9cc 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(0vmin + 1vmin) calc(4vmin + 0vmin)/15vmin 15vmin no-repeat, linear-gradient(45deg, #74b9cc 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(0vmin + 16vmin) calc(4vmin + 0vmin)/15vmin 15vmin no-repeat, linear-gradient(-135deg, #74b9cc 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(0vmin + 1vmin) calc(4vmin + 15vmin)/15vmin 15vmin no-repeat, linear-gradient(135deg, #74b9cc 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(0vmin + 16vmin) calc(4vmin + 15vmin)/15vmin 15vmin no-repeat, linear-gradient(45deg, #adadad 2vmin, transparent 1vmin) calc(0vmin + 32vmin) calc(4vmin + 11vmin)/4vmin 4vmin no-repeat, linear-gradient(135deg, #adadad 2vmin, transparent 1vmin) calc(0vmin + 32vmin) calc(4vmin + 15vmin)/4vmin 4vmin no-repeat, linear-gradient(#adadad 2.5vmin, transparent 1vmin) calc(0vmin + 30vmin) calc(4vmin + 13.625vmin)/3vmin 4vmin no-repeat, linear-gradient(50deg, transparent 6vmin, #347a8d 6vmin, #347a8d 6.25vmin, transparent 6.25vmin) calc(34.5vmin + 15vmin) calc(4vmin + 15vmin)/22vmin 4vmin no-repeat, linear-gradient(-50deg, transparent 6vmin, #347a8d 6vmin, #347a8d 6.25vmin, transparent 6.25vmin) calc(34.5vmin - 5vmin) calc(4vmin + 15vmin)/22vmin 4vmin no-repeat, linear-gradient(90deg, transparent 6vmin, #347a8d 6vmin, #347a8d 6.25vmin, transparent 6.25vmin) calc(34.5vmin + 9.75vmin) calc(4vmin + 15vmin)/22vmin 10vmin no-repeat, linear-gradient(transparent 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(34.5vmin + 5vmin) calc(4vmin + 7.25vmin)/22vmin 15vmin no-repeat, linear-gradient(-135deg, #74b9cc 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(34.5vmin + 1vmin) calc(4vmin + 15vmin)/15vmin 15vmin no-repeat, linear-gradient(135deg, #74b9cc 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(34.5vmin + 16vmin) calc(4vmin + 15vmin)/15vmin 15vmin no-repeat, linear-gradient(45deg, #adadad 2vmin, transparent 1vmin) calc(34.5vmin + 32vmin) calc(4vmin + 11vmin)/4vmin 4vmin no-repeat, linear-gradient(135deg, #adadad 2vmin, transparent 1vmin) calc(34.5vmin + 32vmin) calc(4vmin + 15vmin)/4vmin 4vmin no-repeat, linear-gradient(#adadad 2.5vmin, transparent 1vmin) calc(34.5vmin + 30vmin) calc(4vmin + 13.625vmin)/3vmin 4vmin no-repeat, linear-gradient(45deg, #2d2d2d 1.75vmin, transparent 1vmin) calc(68vmin + 22vmin) calc(4vmin + 10vmin)/4vmin 6vmin no-repeat, radial-gradient(ellipse at 90% 150%, transparent 4vmin, #2d2d2d 4vmin, #2d2d2d 4.75vmin, transparent 1vmin) calc(68vmin + 20vmin) calc(4vmin + 12vmin)/7vmin 3.5vmin no-repeat, linear-gradient(50deg, transparent 6vmin, #347a8d 6vmin, #347a8d 6.25vmin, transparent 6.25vmin) calc(68vmin + 15vmin) calc(4vmin + 15vmin)/22vmin 4vmin no-repeat, linear-gradient(-50deg, transparent 6vmin, #347a8d 6vmin, #347a8d 6.25vmin, transparent 6.25vmin) calc(68vmin - 5vmin) calc(4vmin + 15vmin)/22vmin 4vmin no-repeat, linear-gradient(90deg, transparent 6vmin, #347a8d 6vmin, #347a8d 6.25vmin, transparent 6.25vmin) calc(68vmin + 9.75vmin) calc(4vmin + 15vmin)/22vmin 10vmin no-repeat, linear-gradient(transparent 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(68vmin + 5vmin) calc(4vmin + 7.25vmin)/22vmin 15vmin no-repeat, linear-gradient(-135deg, #74b9cc 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(68vmin + 1vmin) calc(4vmin + 15vmin)/15vmin 15vmin no-repeat, linear-gradient(135deg, #74b9cc 7.5vmin, #020202 7.5vmin, #020202 7.75vmin, transparent 7.75vmin) calc(68vmin + 16vmin) calc(4vmin + 15vmin)/15vmin 15vmin no-repeat, linear-gradient(-135deg, #adadad 2vmin, transparent 1vmin) calc(68vmin + 12vmin) calc(4vmin + 35vmin)/4vmin 4vmin no-repeat, linear-gradient(135deg, #adadad 2vmin, transparent 1vmin) calc(68vmin + 16vmin) cal.........完整代码请登录后点击上方下载按钮下载查看

网友评论0