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: '�.........完整代码请登录后点击上方下载按钮下载查看

网友评论0