gsap实现声音音频波浪纹动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap实现声音音频波浪纹动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { margin:0; padding:0; width:100%; height:100vh; background:#f2f1e7; } svg { width:100%; height:100vh; } </style> </head> <body translate="no"> <svg viewBox="-250 0 500 100" stroke-linecap="round"></svg> <script src='https://unpkg.com/gsap@3/dist/gsap.min.js'></script> <script > const colors = ['#1d392f','#ef8764','#9dc1c3','#4a7a7d','#463d97','#a597e5'] const stage = document.querySelector('svg') let xPos = 0 for (let i=0; i<55; i++){ const p = document.createElementNS('http://www.w3.org/2000/svg',.........完整代码请登录后点击上方下载按钮下载查看
网友评论0