div+css实现热气球在夕阳山岭之间腾飞动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现热气球在夕阳山岭之间腾飞动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
html {
height: 100%;
}
body {
min-height: 100%;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
background: #3f0322;
}
.container {
background: #e4552f;
width: 400px;
height: 400px;
position: relative;
overflow: hidden;
}
.sun {
clip-path: circle(50% at 50% 50%);
background: #fffefe;
width: 60px;
height: 60px;
position: absolute;
left: 67%;
top: 21%;
}
.bg-2 {
background: #fc9336;
position: absolute;
width: 400px;
height: 80px;
top: 20%;
}
.disc-2 {
clip-path: circle(50% at 50% 50%);
background: #fc9336;
width: 140px;
height: 140px;
position: absolute;
left: 57%;
top: 8%;
}
.bg-3 {
background: #ffc467;
position: absolute;
width: 400px;
height: 80px;
top: 34%;
}
.disc-1 {
clip-path: circle(50% at 50% 50%);
background: #ffc467;
width: 100px;
height: 100px;
position: absolute;
left: 62%;
top: 16%;
}
.mountain-3 {
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
background: #e4552f;
width: 100px;
height: 80px;
position: absolute;
top: 28%;
left: -10%;
}
.mountain-4 {
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
background: #e4552f;
width: 150px;
height: 100px;
position: absolute;
top: 30%;
left: 20%;
}
.mountain-5 {
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
background: #e4552f;
width: 80px;
height: 70px;
position: absolute;
top: 37%;
left: 80%;
}
.mountain-6 {
clip-path: polygon(50% 0.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0