svg实现火苗燃烧动画效果代码
代码语言:html
所属分类:动画
代码描述:svg实现火苗燃烧动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Zeyada&display=swap'> <style> body { background: #100; } svg { position: absolute; bottom: 0px; left: 50%; transform: translate(-50%); } </style> </head> <body translate="no"> <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <defs> <filter id="turb" x="-100%" y="-100%" width="300%" height="300%"> <feTurbulence type="turbulence" baseFrequency="0.06" numOctaves="2.5" result="turbulence" seed="69" /> <feDisplacementMap in2="turbulence" in="SourceGraphic" scale="35" /> </filter> <filter id="turb2" x="-100%" y="-100%" width="300%" height="300%"> <feTurbulence type="turbulence" baseFrequency="0.08" numOctaves="1" result="turbulence" seed="169" /> <feDisplacementMap in2="turbulence" in="SourceGraphic" scale="35" /> </filter> <radialGradient id="grad" cx="50%" cy=&q.........完整代码请登录后点击上方下载按钮下载查看
网友评论0