GithubHelp home page GithubHelp logo

n4-scrollfx's Introduction

N4 ScrollFX

This simple jQuery plugin is a part of N4-Framework modules. It can be used to retract / expand / lock a navbar depending on user actions and scroll.

N4 Framework using this repo: https://github.com/Nepmia/N4-Framework

Usage

Simply import it on your project, the default navbar height is 50px so please edit navbar_height to adjust it to your navbar's height.

If you need to lock the navbar from retracting you can do it by simply adding a class to it. This class can be set in navbar_lockclass.

The script can also make the navbar togglable by hovering an element on your page, if you wish to use that please give its class / id name in navbar_hovertrigger like #elt or .elt.

Note

This plugin target a css class called navbar but if you wish to change the target (it must be the parent of your entire navbar) you can change navbar_target.

More specs about parameters

  • navbar_height must be a str including value unit.
  • navbar_lockclass must be a str, it can only be a str and must be a class name, it cannot be changed to id by adding # and it doesn't need a . before the classname
  • navbar_hoverTrigger and navbar_target must be a str, can be a class name or an id using the proper selector (# or .)

n4-scrollfx's People

Contributors

nepmia avatar

Watchers

 avatar

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.