gsap+svg实现圣诞小头跳跃动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap+svg实现圣诞小头跳跃动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Kanit:900");
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 100vh;
background-color: #C94C4C;
}
#BodyLighter {
position: absolute;
top: -50px;
}
.svg-container {
display: inline-block;
position: relative;
width: 25em;
padding-bottom: 25em;
vertical-align: middle;
}
.st0 {
fill: #5296A5;
}
.st1 {
fill: #71acb9;
}
.st2 {
fill: #ffffff;
}
.st3 {
fill: #1f3454;
}
.st4 {
fill: #9E3030;
}
h1 {
font-family: "Kanit";
font-size: 4rem;
position: absolute;
margin-top: 150px;
text-align: center;
width: 100%;
color: #fff;
font-weight: 700;
text-shadow: 0 1px 0 #b53737, 0 2px 0 #ae3434, 0 3px 0 #a63232, 0 4px 0 #9e3030, 0 5px 0 #962d2d, 0 6px 0 #8e2b2b, 0 7px 0 #862929, 0 8px 0 #7f2626, 0 0 5px rgba(196, 30, 30, 0.05), 0 -1px 3px rgba(196, 30, 30, 0.2), 0 9px 9px rgba(196, 30, 30, 0.3), 0 12px 12px rgba(196, 30, 30, 0.3), 0 15px 15px rgba(196, 30, 30, 0.3);
}
#days {
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0