gsap实现微观经济运行动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap实现微观经济运行动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background-color: #FFFCF9; 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"> <defs> <filter id="goo"> <feGaussianBlur in="SourceGraphic" stdDeviation="8" 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 21 -9" result="cm" /> <feBlend/> </filter> <path id="mainPath" d="M509.49,191.07s22.38-43.45,35-50.75A26.44,26.44,0,1,1,571,186.11c-12.64,7.3-61.46,5-61.46,5S398.71,185.75,370,202.32a60.24,60.24,0,1,0,60,.39c-28.7-16.57-139.48-11.25-139.48-11.25s-48.82,2.34-61.46-5a26.44,26.44,0,0,1,26.43-45.79c12.65,7.3,35,50.75,35,50.75s50.78,98.6,79.48,115.17a60,60,0,1,0-30-52c0,33.14,59.27,126.42,59.27,126.42s27.17,41.11,27.17,55.71a26.44,26.44,0,0,1-52.88,0c0-14.6,25.71-55.71,25.71-55.71S460,287.8,460,254.66a60,60,0,1,0-30,51.58c28.7-16.57,79.48-115.17,79.48-115.17" fill="none" stroke="red" stroke-miterlimit="10" stroke-width="1.46"/> </defs> <g id="whole" stroke-dasharray="0.05 10" fill="#def" stroke="#0062C4" stroke-miterlimit="10" stroke-width="3" stroke-linecap="round"> <circle class="center" cx="400" cy="255" r="46" /> <circle class="node" cx="557.13" cy="163.46" r="14.63" /> <circle class="node" data-name="node" cx="399.5" cy="437.37" r="14.63" /> <circle class="node" data-name="node" cx="241.67" cy="163.46" r="14.63" /> <path id="mainPath2" stroke-dasharray='0.05 4' d="M509.49,191.07s22.38-43.45,35-50.75A26.44,26.44,0,1,1,571,186.11c-12.64,7.3-61.46,5-61.46,5S398.71,185.75,370,202.32a60.24,60.24,0,1,0,60,.39c-28.7-16.57-139.48-11.25-139.48-11.25s-48.82,2.34-61.46-5a26.44,26.44,0,0,1,26.43-45.79c12.65,7.3,35,50.75,35,50.75s50.78,98.6,79.48,115.17a60,60,0,1,0-30-52c0,33.14,59.27,126.42,59.27,126.42s27.17,41.11,27.17,55.71a26.44,26.44,0,0,1-52.88,0c0-14.6,25.71-55.71,25.71-55.71S460,287.8,460,254.66a60,60,0,1,0-30,51.58c28.7-16.57,79.48-115.17,79.48-115.17" fill="none" stroke="#0062C4" stroke-miterlimit="10" stroke-width="1" opacity="1"/> <g > <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx="0" cy="0" r="2" fill="#0062C4" stroke="red" stroke-miterlimit="10" stroke-width="0"/> <circle class="dot" cx.........完整代码请登录后点击上方下载按钮下载查看
网友评论0