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

网友评论0