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>.........完整代码请登录后点击上方下载按钮下载查看

网友评论0