All Projects → ascott1 → Bigslide.js

ascott1 / Bigslide.js

Licence: mit
⚠️**DEPRECATED**⚠️ A tiny slide panel navigation jQuery plugin with big dreams

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Bigslide.js

Slide And Swipe Menu
⚡️ A sliding swipe menu that works with touchSwipe library.
Stars: ✭ 135 (-67.47%)
Mutual labels:  jquery-plugin, slide, jquery
Jcslider
🏂 A responsive slider jQuery plugin with CSS animations
Stars: ✭ 52 (-87.47%)
Mutual labels:  jquery-plugin, slide, jquery
Pagepiling.js
pagePiling plugin by Alvaro Trigo. Create a scrolling pile of sections. http://alvarotrigo.com/pagePiling/
Stars: ✭ 3,993 (+862.17%)
Mutual labels:  slide, jquery
Sidr
Sidr is a jQuery plugin for creating side menus and the easiest way for doing your menu responsive.
Stars: ✭ 2,924 (+604.58%)
Mutual labels:  jquery-plugin, jquery
Texttailor.js
jQuery plugin, tailor made text to fill the height of the parent element or ellipse it if it doesn't fit
Stars: ✭ 291 (-29.88%)
Mutual labels:  jquery-plugin, jquery
Material Cards
Card style based on Google Material color palette
Stars: ✭ 370 (-10.84%)
Mutual labels:  jquery-plugin, jquery
Js Offcanvas
A lightweight, flexible jQuery off-canvas navigation plugin which lets you create fully accessible sidebar or top/bottom sliding (or push) panels with keyboard interactions and ARIA attributes.
Stars: ✭ 272 (-34.46%)
Mutual labels:  jquery-plugin, jquery
Stickystack.js
A jQuery plugin that creates a stacking effect by sticking panels as they reach the top of the viewport.
Stars: ✭ 287 (-30.84%)
Mutual labels:  jquery-plugin, jquery
Modaal
An accessible dialog window library for all humans.
Stars: ✭ 2,702 (+551.08%)
Mutual labels:  jquery-plugin, jquery
Jquery Loading
Easily add and manipulate loading states of any element on the page.
Stars: ✭ 321 (-22.65%)
Mutual labels:  jquery-plugin, jquery
Tweetie
Simple jQuery Twitter feed plugin
Stars: ✭ 314 (-24.34%)
Mutual labels:  jquery-plugin, jquery
Hc Sticky
JavaScript library that makes any element on your page visible while you scroll.
Stars: ✭ 375 (-9.64%)
Mutual labels:  jquery-plugin, jquery
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (-34.7%)
Mutual labels:  jquery-plugin, jquery
Email Autocomplete
A jQuery plugin that suggests and autocompletes the domain in email fields.
Stars: ✭ 265 (-36.14%)
Mutual labels:  jquery-plugin, jquery
Preloadme
PreLoadMe, a lightweight jQuery website preloader.
Stars: ✭ 272 (-34.46%)
Mutual labels:  jquery-plugin, jquery
Jquery Tablesort
A tiny & dead-simple jQuery plugin for sortable tables.
Stars: ✭ 254 (-38.8%)
Mutual labels:  jquery-plugin, jquery
Sticky Kit
A jQuery plugin for creating smart sticky elements
Stars: ✭ 2,961 (+613.49%)
Mutual labels:  jquery-plugin, jquery
Datetimepicker
jQuery Plugin Date and Time Picker
Stars: ✭ 3,402 (+719.76%)
Mutual labels:  jquery-plugin, jquery
Ajax Live Search
AJAX Live Search is a PHP search form that similar to Google Autocomplete feature displays the result as you type.
Stars: ✭ 238 (-42.65%)
Mutual labels:  jquery-plugin, jquery
Ziptastic Jquery Plugin
This is a jQuery plugin that shows how Ziptastic could be used.
Stars: ✭ 244 (-41.2%)
Mutual labels:  jquery-plugin, jquery

⚠️ This project is no longer supported. ⚠️

bigSlide is a teeny tiny (~1kb compressed) jQuery plugin for creating off-screen slide panel navigation.

It will slide the navigation panel as well as any containers given the .push class (or a class of your choosing in the settings).

Installation

Download the minified or unminified source.

Using npm or Bower?

bigSlide is available as noth a npm and Bower package. Simply run:

npm install bigslide

or

bower install bigSlide

Getting Started

In your document, include a link to toggle the navigation:

<a  class="menu-link">&#9776;</a>

And your nav menu:

<nav id="menu" class="panel" role="navigation">
    <ul>
        <li><a >Home</a></li>
        <li><a >The Ballad of El Goodo</a></li>
        <li><a >Thirteen</a></li>
        <li><a >September Gurls</a></li>
        <li><a >What's Going Ahn</a></li>
    </ul>
</nav>

Reference jQuery and the big-slide.js file:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.big-slide.js"></script>

To initialize the plugin,:

<script>
$(document).ready(function() {
    $('.menu-link').bigSlide();
});
</script>

You can initialize the plugin with predefined options. Ensure each value is surrounded in quotations:

<script>
$(document).ready(function() {
    $('.menu-link').bigSlide({
	menuWidth:'18em',
	push: ('.mypush'),
	speed:'450'
});
});
</script>

Options

Variable Default Value Description
menu ('#menu') The attribute ID of the navigation menu
push ('.push') The class given to additional elements to 'push' when the nav is toggled
side left The side of the navigation menu (either 'right' or 'left')
menuWidth 15.6em The width of the navigation menu
state closed The default state of the navigation menu (either 'closed' or 'open')
saveState false Set this to true to allow the navigation menu to remember it's previous state when navigating
speed 300 The speed (in milliseconds) of the navigation menu
easyClose false Set this to true to allow users to toggle the menu closed with any click
activeBtn active This class is added to the menu button when it is open. By default the class is .active
semiOpenStatus false Set this to true to collapse the menu instead of closing it seeing only part of it
semiOpenScreenWidth 480 The minimum necessary screen width in pixels to allow the semiOpenStatus
beforeOpen function() {} A method called before the trigger open event
afterOpen function() {} A method called after the trigger open event
beforeClose function() {} A method called before the trigger close event
afterClose function() {} A method called after the trigger close event

Other notes

Although bigSlide will automatically position your menu off screen, I recommend adding the following to your CSS to prevent a flash of the menu on load:

.panel {
	position: fixed;
	left: -15.625em; /*right or left and the width of your navigation panel*/
	width: 15.625em; /*should match the above value*/
}

Additionally, any elements that use the .push class should be relatively positioned:

.wrap {
  position: relative;
}

If you want to shrink the main container div instead of only pushing it, which will allow you to work in the application with the navbar open, apply the .shrink class in place of .push.

License

The MIT License (MIT)

Copyright (c) 2013 Adam Scott

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].