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: "";
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0