css实现文字悬浮滑动导航菜单效果

代码语言:html

所属分类:菜单导航

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>

    <style>
        body {
            background: black;
            font-size:26px;
        }
        .head {
            margin-top: 100px;
            margin-left:50px;
            display: flex;

            padding: 2vw 2.5vw;
            pointer-events: none;
            z-index: 1000;
        }
        .head > div {
            display: flex;
        }
        .head a {
            position: relative;
            color: #fff;
            text-decoration: none;
            pointer-events: all;
            overflow: hidden;
        }
        .head a div, .head a:after {
            transition: -webkit-transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
            transition: transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
            transition: transform 0.85s cubic-bezier(0.19, 1, 0.22, 1), -webkit-transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
        }
        .head a:after {
            content: attr(data-txt);
     .........完整代码请登录后点击上方下载按钮下载查看

网友评论0