css布局实现男士绅士眨眼动画效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现男士绅士眨眼动画效果代码

代码标签: css 男士 绅士 眨眼 动画

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
.creatures {
  width: 100%;
  height: 100%;
  background-color: #3567aa;
  position: absolute;
  top: 0;
  left: 0;
} 

.human {
  width: 100%;
  height: 100%;
  float: left;
  background-color: #3567aa;
  overflow: hidden;
}

.hat {
  margin: 10% auto -18px;
  width: 90px;
  height: 60px;
  background-color: rgb(31,33,43); 
  border-radius: 3px 2px 0 0;
  position: relative;
  z-index: 10;
}

.hat:before {
  content: "";
  width: 100%;
  height: 6px;
  border-radius: 50%;
  background-color: rgb(31,33,43);
  position: absolute;
  top: -3px
}

.hat:after {
  content: "";
  width: 150%;
  height: 5px;
  background-color: rgb(31,33,43);
  position: absolute;
  bottom: -5px;
  left: -25%;
}

.head {
  width: 100px;
  height: 100px;
  background-color: rgb(246,208,166);
  border-radius: 50%;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.head:after {
  content: "";
  po.........完整代码请登录后点击上方下载按钮下载查看

网友评论0