css实现5种手机底部菜单选项卡导航条效果代码

代码语言:html

所属分类:菜单导航

代码描述:css实现5种手机底部菜单选项卡导航条效果代码

代码标签: css 手机 底部 导航条 菜单 选项卡

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
        @import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
        @import url("https://fonts.googleapis.com/icon?family=Material+Icons+Outlined");
        /** 
        @chrisbautista @codespud
        animated tabs using css transitions only.
        I wanted to test how much we can accomplish with just CSS transitions. 
        **/
        :root {
          --accent-color: #1fa8f5;
          --accent-color-fg: #fefefe;
          --backdrop-color: #89d4fe;
          --app-content-background-color: #c0d8ec;
          --inset-shadow: rgba(7, 43, 74, 0.3);
          --outset-shadow: rgba(223, 240, 255, 0.25);
          --clay-box-shadow: rgba(7, 43, 74, 0.3);
          --clay-background-color: #c0d8ec;
          --clay-fg-color: #444;
        }
        
        body {
          background-color: var(--backdrop-color);
          font-size: 10px;
          font-family: "Roboto", sans-serif;
        }
        
        .flex-center {
          display: flex;
          justify-content: space-around;
          align-items: center;
        }
        
        .container {
          padding: 1rem 1rem 1.5rem;
        }
        
        .stage {
          max-width: 400px;
          margin: 0 auto;
        }
        
        .home.active {
          color: var(--accent-color);
        }
        .home-style {
          --app-content-background-color: #c0d8ec;
        }
        
        .products.active {
          --outset-shadow: rgba(247, 167, 103, 0.45);
          --inset-shadow: rgba(149, 62, 8, 0.45);
          --clay-box-shadow: rgba(211, 69, 20, 0.4);
          --clay-background-color: #d34514;
          --clay-fg-color: #f1f2f3;
          color: #690c0c;
        }
        .products-style {
          --app-content-background-color: #d36e5a;
        }
        
        .services.active {
          --outset-shadow: rgba(255, 159, 40, 0.45);
          --inset-shadow: rgba(88, 54, 13, 0.45);
          --clay-box-shadow: rgba(88, 54, 13, 0.4);
          --clay-background-color: #ed9426;
          --clay-fg-color: #f1f2f3;
          color: #cf5c0f;
        }
        .services-style {
          --app-content-background-color: #ed9426;
        }
        
        .about.active {
          --outset-shadow: rgba(93, 255, 85, 0.45);
          --inset-shadow: rgba(28, 78, 26, 0.45);
          --clay-box-shadow: rgba(28, 78, 26, 0.4);
          --clay-background-color: #4dd146;
          --clay-fg-color: #f1f2f3;
          color: #4dd146;
        }
        .about-style {
          --app-content-background-color: #4dd146;
        }
        
        .help.active {
          --outset-shadow: rgba(230, 230, 230, 0.45);
          --inset-shadow: rgba(81, 81, 81, 0.45);
          --clay-box-shadow: rgba(81, 81, 81, 0.4);
          --clay-background-color: #a3a3a3;
          --clay-fg-color: #f1f2f3;
          color: #783896;
        }
        .help-style {
          --app-c.........完整代码请登录后点击上方下载按钮下载查看

网友评论0