css 布局实现一个巨嘴鸟效果代码

代码语言:html

所属分类:布局界面

代码描述:css 布局实现一个巨嘴鸟效果代码

代码标签: 一个 巨嘴 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
html {
  margin: 0;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  background: #91C499;
  background: radial-gradient(circle, #78ffd6 0%, #a8ff78 100%);
  padding: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.container {
  position: absolute;
  display: flex;
  bottom: 0;
  width: 600px;
  height: 600px;
  justify-content: center;
}

.head {
  position: absolute;
  background: #24051B;
  width: 90px;
  height: 120px;
  border-radius: 120px 0 0 120px;
  top: 45%;
  z-index: 3;
  transform: rotate(-10deg);
}

.face {
  position: absolute;
  background: papayawhip;
  width: 60px;
  height: 110px;
  border-radius: 90px 0 0 90px;
  right: 0;
  top: 7%;
}

.eye {
  position: absolute;
  background: black;
  width: 23%;
  height: 17%;
  border-radius: 50%;
  border: 2px solid orange;
  right: 2%;
  top: 24%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eye-shine {
  position: absolute;
  width: 50%;
  height: 35%;
  background: white;
  border-radius: 50%;
  top: 3%;
  right: 3%;
}

.beak {
  position: absolute;
  top: 41.4%;
  width: 150px;
  height: 90px;
  background: linear-gradient(yellow, #E24E1B);
  border-radius: 0 80px 0 0;
  border-left: solid #02C39A 10px;
  right: 16.6%;
  transform: rotate(-10deg);
}
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0