css实现苹果手机下拉菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:css实现苹果手机下拉菜单效果代码

代码标签: 苹果 apple 下拉 菜单

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1">



    <style>
        @import url(https://fonts.googleapis.com/css?family=Ek+Mukta:200);
        body {
          margin: 0;
          line-height: 1.4;
          background: #E1E1E1;
        }
        
        .window {
          position: relative;
          display: block;
          width: 360px;
          height: 567px;
          margin: 100px auto 0;
          box-shadow: 0 0 65px 15px rgba(0, 0, 0, 0.2);
          overflow: hidden;
          border-radius: 3px;
          background: #F1F1F1;
        }
        .window .header {
          position: absolute;
          display: block;
          top: 0;
          left: 0;
          height: 50px;
          width: 100%;
          background: rgba(0, 0, 0, 0.8);
          overflow: hidden;
          transition: all 0.5s ease-out, background 1s ease-out;
          transition-delay: 0.2s;
          z-index: 1;
        }
        .window .header .burger-container {
          position: relative;
          display: inline-block;
          height: 50px;
          width: 50px;
          cursor: pointer;
          transform: rotate(0deg);
          transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
          -webkit-user-select: none;
             -moz-user-select: none;
              -ms-user-select: none;
                  user-select: none;
          -webkit-tap-highlight-color: transparent;
        }
        .window .header .burger-container #burger {
          width: 18px;
          height: 8px;
          position: relative;
          display: block.........完整代码请登录后点击上方下载按钮下载查看

网友评论0