svg实现声音音频评率波形动画效果代码
代码语言:html
所属分类:动画
代码描述:svg实现声音音频评率波形动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { margin: 0; } body > svg { display: block; width: 100vw; height: 100vh; } .bmc { position: fixed; bottom: 10px; right: 10px; } </style> </head> <body> <svg xmlns="http://www.w3.org/2000/svg"> <linearGradient id="gradient"> <stop stop-color="#0ff"/> <stop offset="1" stop-color="#f0f"/> </linearGradient> <filter id="filter" y="-1" height="3"> <feOffset dy="-45" result="o"/> <feTurbulence baseFrequency=".04 .001" numOctaves="4" seed="1" result="a"> <animate attributeName="seed" calcMode="discrete" by="2" dur="0.5s" repeatCount="indefinite" accumulate="sum"/> </feTurbulence> <feComponentTransfer result="a"> <feFuncA type="linear"> <animate attributeName="slope" values="1;0;1".........完整代码请登录后点击上方下载按钮下载查看
网友评论0