gsap液体流动动画效果
代码语言:html
所属分类:动画
代码描述:gsap液体流动动画效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>CodePen - SPECIMEN</title> <style> body { background-color: #070616; overflow: hidden; text-align:center; display: flex; align-items: center; justify-content: center; } body, html { height: 100%; width: 100%; margin: 0; padding: 0; } svg { width: 100%; height: 100%; visibility: hidden; } use { -mix-blend-mode: overlay; } </style> </head> <body translate="no"> <svg id="mainSVG" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"> <defs> <path id="gridBox" d="M281,328.39l30-109.16M518.73,328.89,281,328.39m30-109.16H489m0,0,29.74,109.66" fill="none" stroke-miterlimit="10" stroke-width="0.75" /> <filter id="glow" x="-100%" y="-100%" width="250%" height="250%"> <feGaussianBlur stdDeviation="20" result="coloredBlur" /> <feOffset dx="0" dy="0" result="offsetblur"></feOffset> <feFlood id="glowAlpha" flood-color="#3F21E9" flood-opacity="1"></feFlood> <feComposite in2="offsetblur" operator="in"></feComposite> <feMerge> <feMergeNode /> <feMergeNode in="SourceGraphic"></feMergeNode> </feMerge> </filter> <filter id="glow2" x="-100%" y="-100%" width="250%" height="250%"> <feGaussianBlur stdDeviation="12" result="coloredBlur" /> <feOffset dx="0" dy="0" result="offsetblur"></feOffset> <feFlood id="glowAlpha" flood-color="#3F21E9" flood-opacity="1"></feFlood> <feComposite in2="offsetblur" operator="in"></feComposite> <feMerge> <feMergeNode /> <feMergeNode in="SourceGraphic"></feMergeNode> </feMerge> </filter> <filter id="goo" color-interpolation-filters="sRGB"> <feGaussianBlur in="SourceGraphic" stdDeviation="5" result="blur" /> <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -9" result="cm" /> <feBlend /> </filter> <filter id="bevel" color-interpolation-filters="sRGB" filterUnits="objectBoundingBox" x="-10%" y="-10%" width="150%" height="150%"> <feGaussianBlur in="SourceAlpha" stdDeviation="3" result="blur" /> <feSpecularLighting in="blur" surfaceScale="5" specularConstant="0.75" specularExponent="80" result="specOut" lighting-color="#4356D7"> <fePointLight x="-5000" y="10000" z="10000" /> </feSpecularLighting> <feComposite in="specOut" in2="SourceAlpha" operator="in" result="specOut2" /> <feComposite in="SourceGraphic" in2="specOut2" operator="arithmetic" k1="0" k2="1" k3="1" k4="0" result="litPaint" /> </filter> <g id="container" filter="url(#goo)" /> <radialGradient id="blobGrad" cx="397.6124" cy="190" r="22.6488" gradientUnits="userSpaceOnUse"> <stop offset="0.4" style="stop-color:#FFF" /> <stop offset="1" style="stop-color:#591520" /> </radialGradient> <linearGradient id="refGrad" x1="400" y1="393.43" x2="400" y2="274.67" gradientUnits="userSpaceOnUse"> <stop offset="0" /> <stop offset="0.5" stop-color=".........完整代码请登录后点击上方下载按钮下载查看
网友评论0