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="longC" d="M313.78,200.68h-44.31v-68.02c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v828c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01v-68.43h44.31v79.35c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V121.74c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19v78.94Z"/>
 <path id="longC3" d="M313.78,831.84h-44.31v-68.02c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v200.14c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01v-68.43h44.31v79.35c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99v-221.99c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19v78.94Z"/>
  <path id="longO1_1" d="M429.82,121.74v849.85c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V121.74c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19ZM385.51,960.66V132.66c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v828c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01Z"/>
	
<path id="longL" d="M487.75,967.67h33.39v44.31h-77.29V84.84h43.9v882.83Z"/>	
	
	<path id="O3" d="M636.56,752.9v221.99c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99v-221.99c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19ZM592.25,963.96v-200.14c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v200.14c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01Z"/>
	
   <path id="U3" d="M708.3,716h44.31v258.88c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99v-258.88h43.9v247.96c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01v-247.96Z"/>
  <path id="longU1" d="M708.3,84.84h44.31v574.46c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V84.84h43.9v563.54c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01V84.84Z"/>
	
<!-- <path id="R2" d="M868.66,851.21c0,10.51-5.77,20.82-11.75,23.5,5.77,2.68,11.75,13.19,11.75,23.7v113.16h-44.31v-107.59c0-4.12-2.68-7.21-6.6-7.21h-7.21v114.81h-43.9v-295.57h51.12c34.01,0,50.91,12.37,50.91,37.31v97.9ZM810.53,852.86h7.21c3.5,0,6.6-3.3,6.6-7.21v-78.53c0-3.92-3.09-7.21-6.6-7.21h-7.21v92.96Z"/> -->
	 <path id="R3_long" d="M868.66,538.57c0,10.51-5.77,20.82-11.75,23.5,5.77,2.68,11.75,13.19,11.75,23.7v425.8h-44.31v-420.24c0-4.12-2.68-7.21-6.6-7.21h-7.21v427.45h-43.9V403.36h51.12c34.01,0,50.91,12.37,50.91,37.31v97.9ZM810.53,540.22h7.21c3.5,0,6.6-3.3,6.6-7.21v-78.53c0-3.92-3.09-7.21-6.6-7.21h-7.21v92.96Z"/>
	
	</defs>
	<g   >
 <path id="C3" d="M313.78,831.84h-44.31v-68.02c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v200.14c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01v-68.43h44.31v79.35c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99v-221.99c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19v78.94Z"/>
  <path id="C2" d="M313.78,516.26h-44.31v-68.02c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v200.14c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01v-68.43h44.31v79.35c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99v-221.99c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19v78.94Z"/>
  <path id="C1" d="M313.78,200.68h-44.31v-68.02c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v200.14c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01v-68.43h44.31v79.35c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V121.74c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19v78.94Z"/>
<path id="C2_offscreen" d="M313.78,516.26h-44.31v-68.02c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v200.14c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01v-68.43h44.31v79.35c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99v-221.99c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19v78.94Z"/>

<path id="C1_offscreen" d="M313.78,200.68h-44.31v-68.02c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v200.14c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01v-68.43h44.31v79.35c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V121.74c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19v78.94Z"/>

	<path id="O2" d="M429.82,752.9v221.99c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99v-221.99c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19ZM385.51,963.96v-200.14c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v200.14c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01Z"/>
  <path id="longO1" d="M429.82,121.74v537.57c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V121.74c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19ZM385.51,648.38V132.66c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v515.72c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01Z"/>
  <path id="longO1_offscreen" d="M429.82,121.74v537.57c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V121.74c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19ZM385.51,648.38V132.66c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v515.72c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01Z"/>
	
 <path id="L3" d="M487.75,967.26h33.39v44.31h-77.29v-295.57h43.9v251.26Z"/>
  <path id="L2" d="M487.75,651.68h33.39v44.31h-77.29v-295.57h43.9v251.26Z"/>
  <path id="L1" d="M487.75,336.1h33.39v44.31h-77.29V84.84h43.9v251.26Z"/>
  <path id="L2_offscreen" d="M487.75,651.68h33.39v44.31h-77.29v-295.57h43.9v251.26Z"/>
  <path id="L1_offscreen" d="M487.75,336.1h33.39v44.31h-77.29V84.84h43.9v251.26Z"/>
	
	<path id="longO2" d="M636.56,125.04v849.85c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V125.04c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19ZM592.25,963.96V135.96c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v828c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01Z"/>
<path id="longO4" d="M636.56,125.04v534.27c0,27-20.61,39.99-50.91,39.99s-51.12-12.98-51.12-39.99V125.04c0-27,20.61-40.19,51.12-40.19s50.91,13.19,50.91,40.19ZM592.25,648.38V135.96c0-4.12-2.68-7.21-6.6-7.21-4.12,0-7.21,3.09-7.21,7.21v512.42c0,3.92,3.09,7.01,7.21,7.01,3.5,0,6.6-3.09,6.6-7.01Z"/>	
	
  <.........完整代码请登录后点击上方下载按钮下载查看

网友评论0