gsap+svg+MorphSVGPlugin实现色滴动画效果代码

代码语言:html

所属分类:动画

代码描述:gsap+svg+MorphSVGPlugin实现色滴动画效果代码

代码标签: gsap svg MorphSVGPlugin 色滴 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  


  
  
  
<style>
body {
 background-color: #060E2C;
 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: 90%;
 height: 90%;
 visibility: hidden;
 
}
</style>

</head>

<body translate="no">
  <svg id="mainSVG" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1080">
<defs>
      <filter id="glow" x="-100%" y="-100%" width="250%" height="250%">
        <feGaussianBlur stdDeviation="25" result="coloredBlur" />
        <feOffset dx="0" dy="0" result="offsetblur"></feOffset>
        <feFlood id="glowAlpha" flood-color="#FFF" flood-opacity="0.31"></feFlood>
        <feComposite in2="offsetblur" operator="in"></feComposite>
        <feMerge>
          <feMergeNode/>          
          <feMergeNode in="SourceGraphic"></feMergeNode>
        </feMerge>
      </filter>	
	<clipPath id="mainMask">
		
  <rect width="1080" height="1000" y="40" fill="#09d200"/>
		</clipPath>
	<path id.........完整代码请登录后点击上方下载按钮下载查看

网友评论0