svg+jquery+TweenMax实现炫酷视觉差异鼠标交互图文效果代码

代码语言:html

所属分类:视觉差异

代码描述:svg+jquery+TweenMax实现炫酷视觉差异鼠标交互图文效果代码

代码标签: svg jquery TweenMax 炫酷 视觉差异 鼠标 交互 图文

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

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

<head>
    <meta charset="UTF-8">

    <link href="https://fonts.googleapis.com/css?family=Lato|Playfair+Display:900" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.5.0.css">
    <link rel='stylesheet' href='https://use.typekit.net/ekp8ytl.css'>
    <style>
        html {
      box-sizing: border-box;
    }
    
    *, *:before, *:after {
      box-sizing: inherit;
    }
    
    .me-toggle {
      position: fixed;
      z-index: 9999;
      top: 8px;
      left: 8px;
      display: none;
      width: 48px;
      height: 48px;
      cursor: pointer;
      outline: none;
      border: none;
      background: transparent;
      padding: 0;
      margin: 0;
      overflow: visible;
    }
    @media only screen and (max-width: 800px) {
      .me-toggle {
        display: none;
      }
    }
    
    .me-toggle__info {
      position: absolute;
      z-index: 2;
      top: 30px;
      left: 30px;
      margin: 0;
      color: white;
      text-transform: uppercase;
      font-size: 10px;
      opacity: 0;
      letter-spacing: 1px;
      font-weight: 300;
    }
    
    .me-logo__device--small {
      position: absolute;
      top: 0px;
      left: 0px;
      z-index: 1;
      width: 48px;
      height: 48px;
    }
    
    .me-close {
      visibility: hidden;
      opacity: 0;
    }
    
    .me-toggle__base {
      width: 100%;
      height: 48px;
      background: black;
      background-image: linear-gradient(205deg, #313346 0%, #15161D 76%);
      box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
      border-radius: 2px;
    }
    
    .me-panel {
      position: absolute;
      z-index: 9998;
      top: 0;
      left: 0;
      display: flex;
      justify-content: center;
      width: 50%;
      height: 100%;
      transform: translateX(-101%);
      color: white;
      margin: auto;
      background-image: linear-gradient(205deg, #313346 0%, #15161D 76%);
      box-shadow: 0 2px 48px 0 rgba(0, 0, 0, 0.3);
      font-family: noto-sans-condensed, sans-serif;
      font-weight: 400;
      font-style: normal;
      font-size: 14px;
      line-height: 1.357;
      text-align: center;
      -webkit-font-kerning: normal;
              font-kerning: normal;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-y: scroll;
      overflow: -moz-scrollbars-none;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .me-panel::-webkit-scrollbar {
      display: none;
    }
    @media only screen and (max-width: 800px) {
      .me-panel {
        display: none;
      }
    }
    
    .me-panel__content {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      width: 90%;
      max-width: 376px;
      height: 100%;
      min-height: 630px;
      visibility: hidden;
      opacity: 0;
    }
    
    .me-panel__content-top {
      flex-basis: 60%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
    }
    
    .me-panel__content-btm {
      flex-basis: 40%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
    }
    
    .me-logo {
      width: 76px;
      height: 66px;
    }
    
    .me-logo__device {
      opacity: 0;
    }
    
    .me-title {
      position: relative;
      top: auto;
      left: auto;
      margin: 26px 0 35px;
      font-family: noto-sans-extracondensed, sans-serif;
      font-weight: 400;
      font-style: normal;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 5px;
    }
    .me-title span {
      display: block;
      margin-top: 5px;
      opacity: 0.5;
      font-family: noto-sans-condensed, sans-serif;
      font-weight: 400;
      font-style: normal;
      font-size: 14px;
    }
    
    .me-thanks {
      margin-bottom: 16px;
      overflow: hidden;
    }
    
    .me-thanks__title {
      margin: 0 0 2px;
      font-family: noto-sans-extracondensed, sans-serif;
      font-weight: 700;
      font-style: normal;
      font-size: 104px;
      text-transform: uppercase;
      letter-spacing: 5px;
      line-height: 1;
    }
    
    .me-line {
      width: 100%;
      height: 1px;
      background: white;
      opacity: 0.16;
    }
    
    .me-intro {
      margin: 0;
      opacity: 0.5;
    }
    
    .me-profile {
      position: relative;
      display: flex;
      justify-content: center;
      width: 100%;
      height: 100%;
      margin-top: 18px;
      min-height: 20vh;
    }
    
    .me-profile__link {
      position: absolute;
      top: calc(50% - 54px);
      left: calc(50% - 132px);
      width: 262px;
      height: 108px;
      border-radius: 50%;
    }
    .me-profile__link.me-profile__link-disabled {
      pointer-events: none;
      cursor: default;
    }
    
    .me-line-vert {
      width: 1px;
      height: 100%;
      min-height: 20vh;
      background: white;
      opacity: 0.16;
    }
    
    .me-links {
      width: 100%;
    }
    
    .me-links__list {
      display: flex;
      justify-content: space-between;
      margin: 0;
      padding: 0;
      height: 92px;
      overflow: hidden;
    }
    
    .me-links__item {
      list-style-type: none;
    }
    
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0