css实现夜晚路灯效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现夜晚路灯效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0px;
padding: 0px;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.paint_art {
position: relative;
max-width: 600px;
width: 100%;
max-height: 100vh;
min-height: 100vh;
height: 100%;
background: linear-gradient(to bottom, #7a6b40 0%, #3b3038 60%, #011633 90%, #020202 95%, #020202 100%);
margin: 0px auto;
overflow: hidden;
}
.moon {
position: absolute;
height: 50px;
width: 50px;
border-radius: 50%;
left: 17%;
background: #ffa700;
box-shadow: 0px 0px 30px 0 #ffa700;
top: 29%;
}
.moon:after {
content: "";
position: absolute;
height: 2.5px;
width: 2.5px;
background: #d3bf9a;
opacity: 0.75;
border-radius: 50%;
box-shadow: 0px 0px 10px 0 #d3bf9a;
left: -40%;
top: -30%;
}
.post_lamp {
position: absolute;
height: 70vh;
width: 8px;
background: #010000;
bottom: 5%;
border-radius: 10px;
transform-origin: bottom;
}
.post_lamp.pl_1 {
left: 0px;
z-index: 19;
}
.post_lamp.pl_2 {
left: 18.5%;
transform: scale(0.8);
z-index: 18;
}
.post_lamp.pl_3 {
left: 32.9%;
transform: scale(0.65);
z-index: 17;
}
.post_lamp.pl_4 {
left: 43.3%;
transform: scale(0.55);
z-index: 16;
}
.post_lamp.pl_5 {
left: 50.2%;
transform:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0