Giter Site home page Giter Site logo

austriamarcelo / responsive-menu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jbowyers/responsive-menu

0.0 2.0 0.0 352 KB

Responsive Menu is a drop-down menu jQuery plugin for responsive websites

License: GNU General Public License v3.0

JavaScript 50.88% CSS 18.85% HTML 30.27%

responsive-menu's Introduction

About Responsive Menu

jQuery Responsive Menu is a drop-down menu for responsive websites. It is a jQuery plugin that includes a JavaScript file and CSS file as well as sample HTML.

Demo

Visit http://responsive-menu.com to view a responsive demo

Basic Setup

  • Download - Download and extract the Responsive Menu zip files - https://github.com/jbowyers/responsive-menu
  • Copy files - Copy the responsive-menu.js and responsive-menu.css files to your project
  • Setup Menu HTML - Open the responsive-menu.html sample file and copy and past the menu html into the html files in your project. Or, setup existing menus in your project to work with Responsive Menu (see Configuration).
  • Link to CSS and JavaScript files - Add link and script references to your HTML files
  • Initialize Responsive Menu - Activate the plugin using jQuery (see Configuration)

Using Bower Package Manager

The Responsive Menu repo is registered as a bower package as jquery-responsive-menu.

Configuration

Suggested HTML


    <div class="rm-container">
        <a class="rm-toggle rm-button rm-nojs" href="#">Menu</a>
        <nav class="rm-nav rm-nojs rm-lighten">
            <ul> ...

Theme class options

Options: rm-lighten, rm-darken.
rm-lighten theme lightens menu item backgrounds and is best used if your design requires a dark menu background color. rm-darken theme darkens menu item backgrounds and is best used if your design required a light menu background color. You can set the menu background color to any color to work with the chosen theme.

Sample jQuery


    jQuery(function ($) {
        var menu = $('.rm-nav').rMenu({

            // Optional Settings
            minWidth: '960px',
    
        });
    });

Full List of Options

minWidth

Minimum width for expanded layout in pixels - String
Should match media query in css file. Must be in pixels and include px units if not using Modernizr.
default: '769px'

transitionSpeed

The opening and closing speed of the menus in milliseconds
default: 400

jqueryEasing

The jQuery easing function - used with jQuery transitions
default: 'swing'
options: 'swing', 'linear'

css3Easing

The CSS3 transitions easing function - used with CSS3 transitions
default: 'ease'

toggleBtnBool

Use button as Toggle Link - instead of text
default: true

toggleSel

The Toggle Link selector
default: '.rm-toggle'

menuSel

The menu/sub-menu selector
default: 'ul'

menuItemsSel

The menu items selector
default: 'li'

containerClass

The class the plugin adds to the container of the nav element
default: 'rm-container'

navElementClass

The class the plugin adds to the nav element
default: 'rm-nav'

topMenuClass

The class the plugin adds to the top menu element
default: 'rm-top-menu'

parentClass

The class applied to menu items that contain a sub-menu
default: 'rm-parent'

expandedClass

The class applied to container element to trigger expanded layout
default: 'rm-layout-expanded'

contractedClass

The class applied to container element to trigger contracted layout
default: 'rm-layout-contracted'

animateClass

Use CSS3 animation/transitions class name
default: 'rm-css-animate'
Do not use animation/transitions: ''

accelerateClass

Force GPU Acceleration class name
default: 'rm-accelerate'
Do not force: ''

developmentMode

Use development mode - outputs information to console
default: false

The Toggle Button

An optional menu-btn.png file is included. By default, the same image is included in the CSS as a data URI so the png file is not required unless you would prefer to use the png file instead of the data URI.

Dependencies

jQuery, Modernizr (optional)

How to run tests

No testing framework at this time

Task Managers

Gruntfile.js and package.json files are included if you want to manage tasks using Grunt.
Note: The Grunt file uses configuration information contained in the package.json

Deployment instructions

The git repo is versioned and includes a Bower configuration file so the repo can be easily included in your project as a dependency.

Contribution guidelines

Contributions are much appreciated and welcomed.

Who do I talk to?

jbowyers

responsive-menu's People

Contributors

jbowyers avatar

Watchers

James Cloos avatar Marcelo Austria 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.