Giter Site home page Giter Site logo

auto-hiding-navigation's People

Contributors

claudia-romano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-hiding-navigation's Issues

Submenu in fixed subnav (nav-subnav)

Hello!!

I tried to create some submenu in fixed subnav but when it gets collapsed for mobiles, the submenu button lost its css. I tried to solve it thousands of times but don't know how.

Iis it possible to add an example of a submenu in the fixed navbar?

Thank you in advance!!

is it compatible with bootstrap ?

Dear team,

thanks for bringing up this tool !
I come to ask whether it is compatible with bootstrap or not ? Indeed, I try to manage the proposed class system as follows :

<header class="cd-auto-hide-header">
  <nav id="global-nav" class="navbar navbar-expand navbar-light fixed-top bg-light d-none d-sm-block">
    <!-- the container-fluid allows to work with flex -->
    <div class="container-fluid">
    	<a class="nav-brand float-left" href="dashboard.php"><img width="150px" src="./img/logo.png" alt="logo"/></a>
    	<ul class="navbar-nav mx-auto flex-nowrap flex-row">
          <li class="nav-item">
            <a class="nav-link" href="#">Nav item</a>
          </li>
        </ul>
    </div>
   <nav>
</header>
<main class="cd-main-content">
---content of page
</main>

With adding the js file and the css styles from the tutorial https://codyhouse.co/gem/auto-hiding-navigation;

but it does not work; as a result I just get my nav permanently hidden.

thanks...

Firefox and chrome not working identically

If you scroll down (with mousewheel) the chrome will directly disappear the navigation. The Firefox working not the same way, why ever.

Another idea/suggestion is to get the navigation shown if you are in the upper area of the page. This was not working for me under FF. So I changed the function "checkSimpleNavigation" a little bit in the first if-query:
//there's no secondary nav or secondary nav is below primary nav
if (previousTop - currentTop > scrollDelta || currentTop < scrollOffset) {

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.