css布局实现曼达洛人头盔效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现曼达洛人头盔效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
:root {
--gray: #403a3a;
--black: #121011;
}
body {
background: var(--black);
margin: 0;
padding: 0;
font-family: Mandalore, sans-serif;
box-sizing: border-box;
}
.container {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
width: 100%;
flex-direction: column;
}
.casco-top {
background: var(--gray);
width: 150px;
height: 75px;
border-radius: 100px 100px 0 0;
box-shadow: inset 0px 3px 3px grey, inset 21px 0 0px rgb(18 16 17 / 87%);
position: relative;
}
.casco-top:before {
content: "";
top: 20px;
right: 10px;
width: 38px;
height: 30px;
background: rgb(128 128 128 / 29%);
border-radius: 50%;
position: absolute;
transform: rotate(48deg);
}
.rayas-casco {
background: var(--gray);
height: 120%;
width: 30px;
border-radius: 4px 4px 13px 13px;
position: absolute;
left: 50%;
z-index: 1;
transform: translate(-50%);
border-left: 4px solid var(--black);
border-bottom: 4px solid var(--black);
border-right: 4px solid var(--black);
box-shadow: inset -2px 0 0 gray;
}
.rayas-casco:after {
content: "";
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%);
width: 8px;
height: 90%;
backgro.........完整代码请登录后点击上方下载按钮下载查看
网友评论0