svg+css实现雪地雪人下雪动画效果代码
代码语言:html
所属分类:动画
代码描述:svg+css实现雪地雪人下雪动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
<style>
*, html, body {
box-sizing: border-box;
}
body {
height: 100vh;
background: linear-gradient(#003154, #64A9EA) no-repeat;
overflow-x: hidden;
margin: 0;
padding: 0;
}
.st0 {
fill: #E7F4FA;
}
#ground {
fill: #E7F4FA;
}
#shadow, #mouth {
fill: #B9C3C6;
}
#arm-r {
fill: none;
stroke: #202123;
stroke-width: 3;
stroke-miterlimit: 10;
}
#head, #body {
fill: #E7F4FA;
}
#eyes {
fill: #202123;
}
#nose {
fill: #E7B75C;
}
#arm-l {
fill: none;
stroke: #202123;
stroke-width: 4;
stroke-miterlimit: 10;
}
#buttons {
fill: #808080;
}
.background {
height: 100vh;
position: relative;
}
svg.background__ground {
position: absolute;
bottom: 0;
}
@media screen and (min-width: 1400px) {
svg.background__ground {
bottom: -5em;
}
}
#snowman {
width: 18em;
position: absolute;
bottom: 0;
margin: 1em;
}
@media screen and (min-width: 720px) {
#snowman {
bottom: 3em;
left: 2em;
}
}
@media screen and (min-width: 900px) {
#snowman {
bottom: 5em;
left: 3em;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0