css实现的一个游戏机效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现的一个游戏机效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
background-color: #a1d6e6;
margin-top: 50px;
margin-bottom: 50px;
}
.arcade-container {
position: relative;
display: flex;
justify-content: center;
z-index: 0;
}
.arcade-container .arcade-wall {
position: relative;
}
.arcade-container .arcade-wall .block-1 {
position: relative;
overflow: hidden;
width: 220px;
height: 85px;
}
.arcade-container .arcade-wall .block-1::after {
content: "";
position: absolute;
width: 260px;
height: 100px;
left: 6px;
top: 28px;
background: #0096b6;
border-top: 8px solid #264042;
border-left: 4px solid #264042;
border-top-left-radius: 12px;
transform: rotate(-19deg);
}
.arcade-container .arcade-wall .block-2 {
position: relative;
width: 220px;
height: 50px;
background: #0096b6;
border-left: 8px solid #264042;
}
.arcade-container .arcade-wall .block-2::before {
content: "";
position: absolute;
border-left: 8px solid #264042;
height: 10px;
top: -7px;
left: -8px;
border-radius: 2px;
}
.arcade-container .arcade-wall .block-2::after {
content: "";
position: absolute;
width: 30px;
height: 50px;
background: #0096b6;
border-bottom: 8px solid #264042;
border-left: 9px solid #264042;
border-right: 9px solid #264042;
transform: skew(-45deg);
right: 15px;
z-index: 1;
}
.arcade-container .arcade-wall .block-3 {
position: relative;
width: 220px;
height: 180px;
background-color: #0096b6;
border-left: 8px solid #264042;
}
.arcade-container .arcade-wall .block-3::after {
content: "";
position: absolute;
width: 30px;
height: 180px;
background: #00b8e6;
border-bottom: 8px solid #264042;
border-left: 8px solid #264042;
border-right: 8px solid #264042;
right: 40px;
z-index: 1;
}
.arcade-container .arcade-wall .block-4 {
position: relative;
width: 220px;
height: 45px;
background-color: #0096b6;
border-left: 8px solid #264042;
}
.arcade-container .arcade-wall .block-4::after {
content: "";
position: absolute;
width: 30px;
height: 45px;
background: #00cff3;
border-bottom: 8px solid #264042;
border-left: 8px solid #264042;
border-right: 8px solid #264042;
right: 17px;
transform: skew(45deg);
z-index: 1;
border-bottom-right-radius: 2px;
}
.arcade-container .arcade-wall .block-5 {
position: relative;
width: 220px;
height: 95px;
background-color: #0096b6;
border-left: 8px solid #264042;
}
.arcade-container .arcade-wall .block-5::after {
content: "";
position: absolute;
width: 30px;
height: 95px;
background: #00b8e6;
border-bottom: 8px solid #264042;
border-left: 8px solid #264042;
border-right: 8px solid #264042;
right: -5px;
z-index: 1;
border-bottom-right-radius: 2px;
}
.arcade-container .arcade-wall .block-6 {
position: relative;
width: 220px;
height: 25px;
background-color: #0096b6;
border-left: 8px solid #264042;
}
.arcade-container .arcade-wall .block-6::after {
content: "";
position: absolute;
width: 30px;
height: 25px;
background: #0096b6;
border-bottom: 8px solid #264042;
border-left: 9px solid #264042;
border-right: 9px solid #264042;
right: 8px;
z-index: 1;
transform: skew(-45deg);
border-bottom-left-radius: 2px;
}
.arcade-container .arcade-wall .block-7 {
position: relative;
width: 220px;
height: 195px;
background-color: #0096b6;
border-left: 8px soli.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0