div+css布局实现黑暗光线中的钢铁侠效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现黑暗光线中的钢铁侠效果代码

代码标签: div css 布局 黑暗 光线 钢铁侠

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    html {
  background: black;
}

.container {
  width: 400px;
  height: 400px;
  background: #000;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -200px;
  margin-top: -200px;
}

.lefteye {
  position: absolute;
  top: 170px;
  left: 105px;
  width: 45px;
  height: 5px;
  box-shadow: 0 0 15px 4px #40bdeb;
  transform: rotateZ(20deg);
  background: white;
}

.righteye {
  position: absolute;
  top: 170px;
  left: 210px;
  width: 45px;
  height: 5px;
  box-shadow: 0 0 15px 4px #40bdeb;
  transform: rotateZ(-20deg);
  background: white;
}

.fore {
  position: absolute;
  top: 0px;
  left: 75px;
  width: 215px;
  height: 248px;
  transform: rotateZ(0);
  background-image: linear-gradient(#400 50px, #860 148px);
  -webkit-clip-path: polygon(14% 32%, 82% 32%, 94% 0, 86% 46%, 50% 50%, 11% 46%, 5% 2%);
  clip-path: polygon(14% 32%, 82% 32%, 94% 0, 86% 46%, 50% 50%, 11% 46%, 5% 2%);
}

.mouth {
  position: absolute;
  top: 289px;
  left: 150px;
  width: 60px;
  height: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0