css实现钢铁侠布局效果
代码语言:html
所属分类:布局界面
代码描述:css实现钢铁侠布局效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
*{
margin:0;
padding:0;
}
html,body{
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: black;
}
.container{
height: 600px;
width: 600px;
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: column-reverse;
position: relative;
margin-bottom: 2vh;
}
/*------------------BOTTOM--------------------*/
.bottomBody{
width: 0;
height: 0;
border-top: 230px solid #5b0a0a;
border-left:230px solid transparent;
border-right: 230px solid transparent;
position: relative;
}
.bottom_of_body{
width: 0;
height: 0;
position: absolute;
border-top: 50px solid #c89c51;
border-left:50px solid transparent;
border-right: 50px solid transparent;
}
/*------------------HEART--------------------*/
.heart{
position: absolute;
height: 80px;
width: 80px;
border-radius: 50%;
background: black;
top: 72%;
z-index: 2;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 0 20px 3px #0067ba, 0 0 40px 3px #004379, 0 0 60px 3px #002e52 ;
}
.first_circle{
z-index: 2;
height: 20px;
width: 20px;
background: #afd4ff;
border-radius: 50%;
border:2px solid #2065a6;
}
.second_circle{
position: absolute;
height: 35px;
width: 35px;
z-index: 1;
background: #afd4ff;
border-radius: 50%;
}
.third_circle{
position: absolute;
z-index: 0;
height: 70px;
width: 70px;
border-radius: 50%;
background: #afd4ff;
}
.third_circle:after{
content: '';
display: block;
height: 50px;
width: 50px;
border-radius: 50%;
background: black;
position: absolute;
top: 14.6%;
left: 14.6%;
}
.line_with_shadow{
height: 100%;
width: 8px;
background: black;
position: absolute;
left: 46%;
box-shadow: 0 0 7px 3px #0067ba;
}
.shadow_one{
transform: rotateZ(45deg);
}
.shadow_two{
transform: rotateZ(90deg);
}
.shadow_three{
transform: rotateZ(135deg);
}
.line_black{
height: 100%;
width: 3px;
background: black;
position: absolute;
left: 46%;
}
.line_one{
transform: rotateZ(30deg);
}
.line_two{
transform: rotateZ(60deg);
}
.line_three{
transform: rotateZ(90deg);
}
.line_four{
transform: rotateZ(120deg);
}
.line_five{
transform: rotateZ(150deg);
}
/*------------------CHEST--------------------*/
.chestBody{
width: 470px;
height: 150px;
border-radius: 40%;
position: relative;
top: 5.5%;
background: #5b0a0a;
box-shadow: inset 0 15px 10px 5px black,inset 0 25px 5px 5px #380c0c,inset 0 45px 8px 5px #380c0c;
overflow: hidden;
}
.yellow_object_left{
height: 20px;
width: 15px;
background: #c89c51;
position: absolute;
left: 17.5%;
top:0%;
transform: rotateZ(82deg);
}
.yellow_object_left:before{
content: '';
display: block;
height: 40px;
width: 15px;
background: #c89c51;
position: absolute;
top: 10px;
transform: rotateZ(-60deg);
left: 90.5%;
top: 19%;
}
.yellow_object_left:after{
content: '';
display: block;
height: 84px;
width: 15px;
background: #c89c51;
position: absolute;
transform: rotateZ(60deg);
left: 405.5%;
top: -145%;
}
.yellow_object_right{
height: 20px;
width.........完整代码请登录后点击上方下载按钮下载查看
网友评论0