gsap实现一个钻石波纹波动动画效果代码

代码语言:html

所属分类:动画

代码描述:gsap实现一个钻石波纹波动动画效果代码

代码标签: 钻石 波纹 波动 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
body {
 background-color: #1c1c1c;
 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;
 
}
</style>


</head>

<body >
  <svg id="mainSVG" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
    <linearGradient id="grad1" x1="393.05" y1="391.01" x2="393.05" y2="247.71" gradientUnits="userSpaceOnUse">
      <stop offset="0" stop-color="#c68af8"/>
      <stop offset="1" stop-color="#58d1dc"/>
    </linearGradient>	

   <linearGradient id="grad2" x1="393.05" y1="391.01" x2="393.05" y2="247.71" gradientUnits="userSpaceOnUse">
      <stop offset="0" stop-color="#EA4F2C"/>
      <stop offset="1" stop-color="#FAAC25"/>
    </linearGradient>	

   <linearGradient id="grad3" x1="393.05" y1="551.01" x2="393.05" y2="347.71" gradientUnits="userSpaceOnUse">
      <stop offset="0" stop-color="#D93964"/>
      <stop offset="1" stop-color="#8D2AE6"/>
    </linearGradient>	

   <linearGradient id="grad4" x1="393.05" y1="400" x2="393.05" y2="200" gradientUnits="userSpaceOnUse">
      <stop offset="0" stop-color="#6A2CB6"/>
      <stop offset="1" stop-color="#5AD4FD"/>
    </linearGradient>	
<g stroke="#FFFCF9">
	    <g id="bg" fill="none"  stroke-linecap="round" stroke-mit.........完整代码请登录后点击上方下载按钮下载查看

网友评论0