Giter Site home page Giter Site logo

sliding-nav's Introduction

sliding-nav

滑动效果的导航菜单

image

Usage

  1. Include file sliding-nav.js before tag in a HTML file.
<script src="/path/to/sliding-nav.js"></script>
  1. Use class name sliding-nav in a navigation bar element,and use .active for a selected menu item.
  2. Use following attributes to change its color,radius and height:sn-color, sn-radius,sn-height. (if no these attributes, default settings following will be used)
<ul class="nav sliding-nav" sn-color="#F00" sn-radius="0px" sn-height="3px">
    <li class="active">menu-item 1</li>
    <li>menu-item 2</li>
    <li>menu-item 3</li>
<ul>

使用方法

1、在标记结束前,引用sliding-nav.js文件 2、在需要滑动条的菜单容器上加类名 sliding-nav,当前项使用类名:active 3、使用属性来定定外观:sn-color="颜色" sn-radius="圆度" sn-height="高度"

<script src="/path/to/sliding-nav.js"></script>
<ul class="nav sliding-nav" sn-color="#F00" sn-radius="0px" sn-height="3px">
    <li class="active">菜单项1</li>
    <li>菜单项2</li>
    <li>菜单项3</li>
<ul>

Sliding Navigation Bar By Dosboy(yan,ZHANG) Mailto: [email protected] --2020.02.06

sliding-nav's People

Contributors

cowbook avatar dosboy0716 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

markzhang716

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.