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 821.5 347.9 831.1 377.5L920 651.2C929.6 680.8 922.7 713.6 901.8 736.7L709.3 950.6L708.9 950.2L709.3 950.6C692.6 969.2 668.7 979.5 644.2 979.5ZM466.6 258.4C442.4 258.4 418.9 268.6 402.4 286.9L209.8 500.8C189.2 523.6 182.4 556 191.9 585.2L280.8 858.9C290.3 888.1 314.9 910.2 344.9 916.6L626.4 976.4C656.5 982.8 687.9 972.6 708.4 949.7L901 736C921.6 713.2 928.4 680.8 918.9 651.6L830 377.9C820.5 348.7 795.9 326.6 765.9 320.2L484.4 260.3C478.5 259 472.5 258.4 466.6 258.4Z" fill="#E8E8E8" /> <path class="vector-line" id="Vector_4" opacity="0.33" d="M687.5 996.9C684.8 996.9 682 996.8 679.3 996.5L367.7 969.2C334 966.3 304.2 945.4 289.9 914.7L157.7 631.3C143.4 600.6 146.6 564.4 166 536.7L345.4 280.4C364.8 252.7 397.8 237.3 431.5 240.3L743.1 267.5C776.8 270.4 806.6 291.3 820.9 322L953.1 605.5C967.4 636.2 964.2 672.4 944.8 700.1L765.4 956.4C747.6 981.8 718.3 996.9 687.5 996.9ZM158.7 630.8L290.9 914.3C305 944.6 334.5 965.2 367.8 968.1L679.4 995.4C712.7 998.3 745.3 983.1 764.4 955.7L943.8 699.5C963 672.1 966.1 636.3 952 606L819.9 322.5C805.8 292.2 776.3 271.6 743 268.7L431.4 241.4C398.1 238.5 365.5 253.7 346.4 281.1L166.9 537.3C147.7 564.7 144.6 600.5 158.7 630.8Z" fill="#E8E8E8" /> <path class="vector-line" id="Vector_5" opacity="0.25" d="M395.8 1021.8C360.4 1021.8 327.1 1003.4 308.3 973.3L128.1 684.9C108.6 653.7 107.2 614.2 124.5 581.8L284.1 281.6C301.4 249.1 334.9 228.2 371.........完整代码请登录后点击上方下载按钮下载查看
网友评论0