div+css实现下雪的冬天日出日落动画代码
代码语言:html
所属分类:动画
代码描述:div+css实现下雪的冬天日出日落动画代码
代码标签: div css 下雪 冬天 日出 日落 动画 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
#winter-wrap {
background-color: #6ab4e3;
background: linear-gradient(20deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 0%, rgba(106,180,227,1) 76%, rgba(0,212,255,1) 100%);
max-width: 600px;
height: 600px;
/* border-top: 5px solid #ddd; */
border-bottom-color: #fff;
border-radius: 100% 100% 0 0;
margin: 25px auto;
padding: 0;
position: relative;
overflow: hidden;
box-shadow: inset 0 -50px 100px 50px #6ab4e3, inset 0 -100px 100px 75px #02024a, inset 0 50px 150px 10px #fff, 0 -15px 10px -10px #468cc5;
animation: skyflash 24s infinite alternate linear;
}
@keyframes skyflash {
0%, 100% {
box-shadow: inset 0 -50px 100px 50px #6ab4e3, inset 0 100px 100px 75px #02024a, inset 0 50px 150px 10px #fff, 0 -15px 10px -10px #468cc5;
}
33%, 66% {
box-shadow: inset 0 -50px 100px 50px #6ab4e3, inset 0 -100px 100px 75px #02024a, inset 0 50px 150px 10px #fff, 0 -15px 10px -10px #468cc5;
}
}
#winter-wrap::before {
content: "";
width: 550px;
height: 160px;
border-radius: 10px 100% 50px 0px;
padding: 0;
margin: 0;
background: #fff;
position: absolute;
bottom: 0px;
left: 0;
box-shadow: inset -5px 10px 10px -5px #cbd7e6,
inset -15px 5px 25px 0px #b3c5da, inset -30px 30px 60px 10px #d7dce2,
inset -10px 25px 22px 10px #f5efe7;
}
#winter-wrap::after {
content: "";
width: 100%;
height: 100%;
border-radius: 100% 100% 0px 0px;
padding: 0;
margin: 0;
position: absolute;
bottom: 0px;
left: 0;
z-index:2;
overflow: hidden;
box-shadow:
inset 0px -50px 50px -10px #fff;
}
#winter-wrap ul {
padding: 0;
margin: 0;
}
.ground::after {
content: "";
width: 400px;
height: 130px;
border-radius: 100% 50% 0% 50%;
padding: 0;
margin: 0;
background: #fff;
position: absolute;
z-index: 1;
bottom: -15px;
left: calc(50% - 210px);
box-shadow: inset -40px 0px 20px 15px #cbd7e6, -130px -5px 30px -10px #fff,
-150px -20px 0 -10px #b3c5da, 130px 35px 30px -30px #fff,
145px 20px 20px -20px #f5efe7, 150px 20px 0 -15px #b3c5da,
150px 20px 10px -16px #fff;
}
.ground::before {
content: "";
width: 300px;
height: 150px;
border-radius: 60% 100% 0% 0%;
padding: 0;
margin: 0;
background: #fff;
position: absolute;
z-index: 2;
bottom: -66px;
right: 33px;
box-sh.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0