css实现按钮点击下拉菜单动画效果代码

代码语言:html

所属分类:菜单导航

代码描述:css实现按钮点击下拉菜单动画效果代码

代码标签: css 按钮 点击 下拉 菜单 动画

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">


    <style>
        .area::after {
          content: "";
          display: block;
          width: 101%;
        }
        
        body {
          height: 100vh;
          margin: 0;
          display: grid;
          place-items: center;
          background: #2196f3;
          font: 100%/1.4 system-ui, sans-serif;
          line-height: 1.4;
        }
        
        h2 {
          line-height: 1.24;
          margin: 0 0 1rem 0;
        }
        
        .area {
          background: white;
          padding: 60px 25px 25px 25px;
          border-radius: 8px;
          width: 300px;
          box-shadow: 0 0.66rem 2.4rem #0d47a1;
          position: relative;
          overflow: initial;
          word-wrap: break-word;
        }
        img {
          max-width: 100%;
        }
        
        /* super mega terndy mobile menu */
        
        .area .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;
        }
        .area .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);
          -w.........完整代码请登录后点击上方下载按钮下载查看

网友评论0