gsap+flip实现2022新年快乐动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap+flip实现2022新年快乐动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Audiowide&display=swap");
* {
margin: 0;
padding: 0;
}
body {
background-color: #11141c;
height: 100vh;
overflow: hidden;
}
h1 {
font-family: "Audiowide", cursive;
color: #f5e4c1;
font-size: 5rem;
text-shadow: 6px 6px #cf5729;
text-align: center;
margin-bottom:100px;
}
.year {
display: flex;
justify-content: center;
}
.number {
margin: 0 10px;
}
.shape {
height: 100px;
width: 100px;
}
.two > .top,
.two > .bottom,
.zero {
display: flex;
}
.two > .top > div:nth-of-type(1) > .shape {
border-radius: 50rem 0 0;
background-color: #efd84e;
}
.two > .top > div:nth-of-type(1) > .shape:nth-of-type(2) {
background-color: #f4e5bf;
margin-top: 5px;
}
.two > .top > .shape {
height: 205px;
border-radius: 0 50rem 50rem 0;
background-color: #7db890;
margin-left: 5px;
}
.two > .bottom {
margin-top: 5px;
}
.two > .bottom > .shape:nth-of-type(1) {
border-radius: 0 50% 0 50%;
background-color: #7385b3;
margin-right: 5px;
}
.two > .bottom > .shape:nth-of-type(2) {
border-radius: 0 50rem 0 0;
background-color: #cf5729;
}
.zero .shape {
width: 130px;
}
.zero > div > .shape {
height: 152px;
border-radius: 50rem 0 0 0;
background-color: #efd84e;
}
.zero > div > .shape:nth-of-type(2) {
border-radius: 0 0 0 50rem;
background-color: #cf5729;
margin-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0