TweenMax+svg实现光子穿过多层透镜动画效果代码
代码语言:html
所属分类:动画
代码描述:TweenMax+svg实现光子穿过多层透镜动画效果代码
代码标签: TweenMax svg 光子 穿过 多层 透镜 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background-color: #000; 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; } .desat { filter:url(#desat) } </style> </head> <body> <!-- partial:index.partial.html --> <svg viewBox="0 0 1323 427" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <ellipse id="path-1" cx="68" cy="213.5" rx="68" ry="213.5"></ellipse> <linearGradient x1="46.1911694%" y1="84.9243045%" x2="53.8442177%" y2="16.3295925%" id="linearGradient-3"> <stop stop-color="#1D8DBA" offset="0%"></stop> <stop stop-color="#03ECAE" offset="100%"></stop> </linearGradient> <ellipse id="path-4" cx="52.96875" cy="200.15625" rx="52.96875" ry="200.15625"></ellipse> <linearGradient x1="46.1911694%" y1="84.9243045%" x2="53.8442177%" y2="16.3295925%" id="linearGradient-6"> <stop stop-color="#1D8DBA" offset="0%"></stop> <stop stop-color="#03ECAE" offset="100%"></stop> </linearGradient> <linearGradient x1="2.52729595%" y1="50.372629%" x2="100.254178%" y2="48.3579187%" id="linearGradient-7"> <stop stop-color="#1D8DBA" stop-opacity="0" offset="0%"></stop> <stop stop-color="#1C82AC" offset="35.4534198%"></stop> <stop stop-color="#03ECAE" offset="81.7401613%"></stop> <stop stop-color="#03ECAE" stop-opacity="0" offset="100%"></stop> </linearGradient> <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-8"> <stop stop-color="#FFFFFF" stop-opacity="0.5" offset="0%"></stop> <stop stop-color="#000000" stop-opacity="0" offset="100%"></stop> </linearGradient> <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-9"> <stop stop-color="#FFFFFF" stop-opacity="0.5" offset="0%"></stop> <stop stop-color="#000000" stop-opacity="0" offset="100%"></stop> </linearGradient> <linearGradient x1="12.4534884%" y1="75.0267275%" x2="87.8953488%" y2="25.871814%" id="linearGradient-10"> <stop stop-color="#1D8DBA" offset="0%"></stop> <stop stop-color="#03ECAE" offset="100%"></stop> </linearGradient> <linearGradient x1="-0.00267571531%" y1="50.0000348%" x2="99.9993936%" y2="50.0000348%" id="linearGradient-11"> <stop stop-color="#9FFFF1" offset="0%"></stop> <stop stop-color="#74FFF1" offset="40%"></stop> <stop stop-color="#36FFF0" offset="100%"></stop> </linearGradient> </defs> <g id="Managed-Security---AWS-Level-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="funnel"> <g id="Oval" transform="translate(1187.000000, 0.000000)"> <mask id="mask-2" fill="white"> <use xlink:href="#path-1"></use> </mask> <g id="Mask"></g> <ellipse stroke="url(#linearGradient-3)" stroke-width="25" mask="url(#mask-2)" cx="55" cy="213.5" rx="68" ry="213.5"></ellipse> <ellipse id="Oval-Copy-30" stroke="url(#linearGradient-3)" stroke-width="25" opacity="0.184629193" mask="url(#mask-2)" cx="81" cy="213.5" rx="68" ry="213.5"></ellipse> </g> <g id="Oval-Copy-21" transform="translate(1164.000000, 13.000000)"> <mask id="mask-5" fill="white"> <use xlink:href="#path-4"></use> </mask> <g id="Mask"></g> <ellipse id="Oval" stroke="url(#linearGradient-6)" stroke-width="23.4375" mask="url(#mask-5)" cx="47.5625" cy="200.15625" rx="63.75" ry="200.15625"></ellipse> .........完整代码请登录后点击上方下载按钮下载查看
网友评论0