gsap+svg实现线性波浪圈圈动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现文字卡片鼠标gsap+svg实现线性波浪圈圈动画效果代码悬浮跟随线性背景光标效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
body {
background-color: #171b21;
overflow: hidden;
font-family: 'Poppins', sans-serif;
display: flex;
align-items:center;
justify-content:center;
height: 100vh;
}
.bg-background {
/* transform: scale(1.6); */
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
h1 {
color: white;
font-size: 64px;
}
</style>
</head>
<body>
<svg class="bg-background" width="1111" height="1237" viewBox="0 0 1111 1237" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group 1">
<path class="vector-line" id="Vector" opacity="0.8" d="M572.3 935.5C561.2 935.5 550.1 933 539.9 928L321 821.2C297.3 809.6 281.4 786.1 279.6 759.8L262.6 516.8C260.8 490.5 273.2 465 295.1 450.2L497 314C518.9 299.2 547.2 297.3 570.9 308.8L789.8 415.6C813.5 427.2 829.4 450.7 831.2 477L848.2 720C850 746.3 837.6 771.8 815.7 786.6L613.8 922.8C601.4 931.2 586.9 935.5 572.3 935.5ZM538.4 302.5C524.1 302.5 509.8 306.7 497.6 314.9L295.7 451.2C274.2 465.7 261.9 490.8 263.7 516.7L280.7 759.7C282.5 785.6 298.1 808.8 321.5 820.2L540.4 927C563.7 938.4 591.6 936.4 613.2 921.9L815.1 785.7C836.6 771.2 848.9 746.1 847.1 720.2L830.1 477.2C828.3 451.3 812.7 428.1 789.3 416.7L570.4 309.9C560.3 304.9 549.3 302.5 538.4 302.5Z" fill="#E8E8E8" />
<path class="vector-line" id="Vector_2" opacity="0.6" d="M605.8 958.8C597 958.8 588.2 957.4 579.7 954.4L329.4 868.2C302.3 858.9 282.1 835.6 276.6 807.5L226 547.6C220.5 519.5 230.6 490.3 252.2 471.5L452.1 297.7C473.7 278.9 504 273 531.1 282.3L781.4 368.5C808.5 377.8 828.7 401.1 834.2 429.2L884.7 689.1C890.2 717.2 880.1 746.4 858.5 765.2L658.7 939C643.9 951.9 625 958.8 605.8 958.8ZM505 279.2C486.1 279.2 467.5 285.9 452.9 298.6L253 472.3C231.7 490.8 221.8 519.6 227.2 547.3L277.7 807.2C283.1 834.9 303 857.9 329.7 867.1L580 953.3C606.7 962.5 636.5 956.7 657.9 938.2L857.7 764.5C879 746 888.9 717.2 883.5 689.5L833 429.6C827.6 401.9 807.7 378.9 781 369.7L530.7 283.5C522.3 280.6 513.6 279.2 505 279.2Z" fill="#E8E8E8" />
<path class="vector-line" id="Vector_3" opacity="0.44" d="M644.2 979.5C638.2 979.5 632.1 978.9 626.1 977.6L344.6 917.8C314.1 911.3 289.2 888.9 279.6 859.3L190.7 585.6C181.1 556 188 523.2 208.9 500.1L401.5 286.2C422.3 263.1 454.2 252.7 484.7 259.2L766.1 319C796.6 325.5 .........完整代码请登录后点击上方下载按钮下载查看
网友评论0