js+css实现滑动导航动画效果代码

代码语言:html

所属分类:菜单导航

代码描述:js+css实现滑动导航动画效果代码

代码标签: js css 滑动 导航 动画

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">


    <style>
        .nav ul:before {
            top: 20px;
        }
    </style>



    <style>
        html, body, ul {
          margin: 0;
          padding: 0;
        }
        
        html, body {
          width: 100%;
          height: 100%;
        }
        
        body {
          position: relative;
          background-color: #F8F8F8;
        }
        
        ul {
          list-style: none;
        }
        
        li {
          width: 100%;
          text-align: center;
        }
        
        a {
          display: inline-block;
          width: 80%;
          border-bottom: 1px solid #F8F8F8;
          color: #606566;
          text-decoration: none;
          line-height: 39px;
          font-family: "Hiragino Sans GB", STHeiti, sans-serif;
          background-color: none;
        }
        
        a.active {
          color: #FC6045;
        }
        
        a:hover,
        li:hover a {
          color: #FC60.........完整代码请登录后点击上方下载按钮下载查看

网友评论0