流体液体导航条特效

代码语言:html

所属分类:菜单导航

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:400,500,700&amp;display=swap'>
    <style>
        .tabbar {
            --primary: #275EFE;
            --background: #fff;
            --inactive: #99A3BA;
            --shadow: rgba(18, 22, 33, .24);
            --line: #CDD9ED;
            background: var(--background);
            box-shadow: 0 1px 4px -1px var(--shadow);
            border-radius: 5px 5px 21px 21px;
            width: 360px;
            -webkit-tap-highlight-color: transparent;
            overflow: hidden;
        }
        .tabbar ul {
            --x: 54px;
            margin: 0;
            padding: 0 12px;
            list-style: none;
            display: grid;
            position: relative;
            overflow: hidden;
            text-align: center;
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
        .tabbar ul:before {
            content: '';
            position: absolute;
            top: 0;
            left: var(--x);
            background: var(--primary);
            width: 60px;
            margin-left: -30px;
            height: 40px;
        }
        .tabbar ul li {
            position: relative;
        }
        .tabbar ul li:before, .tabbar ul li:after {
            content: '';
            background: var(--background);
            height: 44px;
            width: 84px;
            position: absolute;
            top: 0;
            left: 50%;
            margin-left: -42px;
        }
        .tabbar ul li:before {
            border-radius: 0 48% 0 0;
        }
        .tabbar ul li:after {
            .........完整代码请登录后点击上方下载按钮下载查看

网友评论0