gsap实现网页滚动背景线条流动动画代码
代码语言:html
所属分类:加载滚动
代码描述:gsap实现网页滚动背景线条流动动画代码
代码标签: gsap 网页 滚动 背景 线条 流动 动画 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,500..600;1,500..600&display=swap');
* { box-sizing: border-box; }
html, body {
width: 100%;
margin: 0;
padding: 0px;
}
body {
--strokeDashoffset: 0;
background: #131417;
font-size: 1.2rem;
font-weight: 400;
font-style: normal;
color: #FFFFFF;
overflow-x: clip;
}
main {
display: flex;
justify-content: center;
position: relative;
width: 740px;
height: 2000px;
padding: 0px;
margin-left: auto;
margin-right: auto;
cards {
display: block;
width: 300px;
position: absolute;
top: 0px;
z-index: 10;
cardWrapper {
display: block;
position: relative;
width: 300px;
height: 450px;
border-radius: 20px;
margin-top: 25px;
margin-bottom: 25px;
&::before {
content: " ";
display: block;
position: absolute;
z-index: 0;
width: inherit;
height: inherit;
border-radius: inherit;
background-color: #0004;
backdrop-filter: blur(8px);
}
&::after {
position: absolute;
left: 0px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0