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;
}
*:before, *:after {
content: "";
diplay: block;
position: absolute;
box-sizing: border-box;
}
html, body {
height: 100%;
background: #593c1e;
}
.landscape {
position: relative;
height: calc(100vh - 50px);
background: #db9;
overflow: hidden;
}
.landscape div {
position: absolute;
}
.sun {
left: 50%;
bottom: 180px;
width: 150px;
height: 150px;
margin-left: 200px;
border-radius: 50%;
background: #ff8;
}
.level {
left: 50%;
width: 2000px;
height: 2000px;
border-radius: 50%;
}
.l1 {
bottom: -1850px;
margin-left: -1100px;
background: #d0a273;
}
.l2 {
bottom: -1700px;
margin-left: -300px;
background: #c4884d;
}
.l3 {
bottom: -1900px;
margin-left: -800px;
background: #a66f37;
}
.l4 {
bottom: -1800px;
margin-left: -1700px;
background: #80552b;
}
.windmill {
width: 2px;
}
.windmill .turbine {
top: -5px;
left: -4px;
width: 10px;
height: 10px;
border-radius: 50%;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0