div+css实现日落建筑工地塔吊电焊工人工作的场景动画代码
代码语言:html
所属分类:动画
代码描述:div+css实现日落建筑工地塔吊电焊工人工作的场景动画代码,将工作在一线的广大工人致敬。
代码标签: div css 日落 建筑 工地 塔吊 电焊 工人 工作场景 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
path {
stroke: #000000;
fill: #000000;
}
.page-wrapper {
overflow: hidden;
}
.sky {
background: linear-gradient(to bottom, #000508 0%, #163C52 25%, #4F4F47 40%, #C5752D 53%, #B7490F 85%, #2F1107 100%);
width: 100%;
height: 75vh;
}
.sky .component-wrapper {
position: relative;
}
.sky .sun {
position: absolute;
width: 200px;
height: 200px;
top: 45%;
left: 20%;
border-radius: 50%;
background: radial-gradient(circle, #ffe483 0%, #ffc700 10%, #ff8117 11%, #f5740300 35%, #f5740300 100%);
}
.sky .svg-image {
position: absolute;
bottom: -7px;
left: 0;
right: 0;
margin: auto;
width: 80%;
max-height: 75vh;
}
.sky .background-left {
width: 60%;
margin-left: -36px;
transform: scaleX(-1);
bottom: -15px;
}
.sky .background-right {
margin-right: 0;
}
.sky .background {
width: 100%;
margin: 0 -20px;
margin-bottom: -10px;
}
.sky .background-grid {
display: flex;
width: 100%;
box-sizing: border-box;
position: absolute;
left: 0;
right: 0;
bottom: -5px;
top: 0;
align-items: flex-end;
}
.sky .limit {
max-height: 75vh;
max-width: 100vh;
width: calc((768/1024) * 107%);
bottom: 0;
}
.sky .light-wrapper, .sky .weld-wrapper, .sky .spark-wrapper {
position: relative;
padding-bottom: calc((768/1024) * 100%);
height: 0;
}
.ground {
background: black;
width: 100%;
height: 25vh;
}
.svg-components {
position: relative;
height: 0;
width: 100%;
padding: 0;
padding-bottom: 75vh;
margin: auto;
margin-left: -10%;
}
.svg-components svg {
position: absolute;
height: 100%;
width: 80%;
left: 0;
bottom: -7px;
right: 0;
margin: auto;
max-height: calc(80vw / 1.33);
margin-right: 0;
}
.container {
position: relative;
}
.light-bar {
transform: rotate(4deg) translateX(15px);
display: flex;
justify-content: space-between;
width: 85%;
position: absolute;
height: 100%;
bottom: -18%;
}
.light.red {
visibility: visible;
opacity: 1;
width: 1px;
height: 1px;
box-shadow: 0 0 5px 5px #ff1818;
background-color: #ff1818;
-webkit-animation: strobe 3s steps(2, start) infinite;
animation: strobe 3s steps(2, start) infinite;
-webkit-animation-direction: alternate;
animation-direction: alternate;
}
.light.top {
position: absolute;
top: 9%;
right: 29%;
}
.material.hidden {
visibility: hidden;
}
.material path {
-webkit-animation: move-trolly-components 45s infinite;
animation: move-trolly-components 45s infinite;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
-webkit-animation-direction: alternate;
animation-direction: alternate;
}
.hook {
-webkit-animation: move-trolly-components 45s infinite;
animation: move-trolly-components 45s infinite;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
-webkit-animation-direction: alternate;
animation-direction: alternate;
}
.cable {
stroke-width: 1;
stroke: black;
stroke-dasharray:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0