gsap实现炫酷的文字出场动画海报代码
代码语言:html
所属分类:动画
代码描述:gsap实现炫酷的文字出场动画海报代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;900&display=swap');
:root {
}
*, *::after, *::before {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0px;
}
body {
--rotation: 0deg;
--thickness: 20px;
--border: 8px;
--gap: 30px;
--blue: #80a77c;
--blueDark: color-mix(in oklab, var(--blue), #000000 15%);
--orange: #cd4e0b;
background: radial-gradient( transparent 50%, color-mix(in oklab, var(--blueDark), var(--blue) 50% ) ), var(--blue);
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
overflow: clip;
font-family: "Poppins", sans-serif;
font-style: normal;
}
main {
display: block;
display: flex;
align-items: center;
justify-content: center;
visibility: hidden;
}
.box {
position: absolute;
display: block;
display: flex;
align-items: center;
justify-content: center;
width: 150vw;
height: 150vh;
transform: translate(-10vw, 0);
&#ground { z-index: 5; }
&#air { z-index: 10; }
&#text { z-index: 15; }
#text {
position: relative;
.........完整代码请登录后点击上方下载按钮下载查看















网友评论0