悬浮特效菜单切换效果

代码语言:html

所属分类:菜单导航

代码描述:悬浮特效菜单切换效果

代码标签: 切换 效果

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

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

    <style>
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
        }

        ul {
            position: relative;
        }

        ul li {
            list-style: none;
            text-align: center;
        }

        ul li a {
            color: #333;
            text-decoration: none;
            font-size: 3em;
            padding: 5px 20px;
            display: inline-flex;
            font-weight: 700;
            transition: 0.5s;
        }

        ul:hover li a {
            color: #0002;
        }

        ul li:hover a {
            color: #000;
            background: rgba(255,255,255,1);
        }

        ul li a:before {
            content: '';
            position: absolute;
            top: 50%;
            left: 40%;
            transform: translate(-50%,-50%);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 5em;
            color: rgba(0,0,0,.1);
            border-radius: 50%;
            z-index: -1;
            opacity: 0;
            font-weight: 900;
            text-transform: uppercase;
            lette.........完整代码请登录后点击上方下载按钮下载查看

网友评论0