Git Product home page Git Product logo

slidereveal's Introduction

Build Status

Slide Reveal

Show side panel by sliding from the left or right of the page.

Getting Started

Download the production version or the development version.

Or install using bower.

bower install slidereveal

In your web page:

<script src="jquery.js"></script>
<script src="dist/jquery.slidereveal.min.js"></script>

<div id="slider">Hello World!!</div>
<button id="trigger">Hello World!!</button>

<script>
$(function($) {
  var slider = $("#slider").slideReveal({
  	trigger: $("#trigger")
  });
});
</script>

The plugin does not add any CSS to your side panel. So, you need to style it yourself for a nice panel or a beautiful navigation.

Documentation and Examples

Please refer to its github.io

Release History

See the release page

How to Contribute

See the contributing page

slidereveal's People

Contributors

nnattawat avatar timcheadle 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  avatar  avatar  avatar  avatar  avatar

slidereveal's Issues

Deinitialize/unbind function?

Hi,
is there an unbind or deinitialize function at the plugin?
I have an menu which is getting a sidebar if the window is resized to mobile but if I resize back actually I have only found the possibility to remove style
.removeAttr('style');
But if I make the window smaller again only the left attribut will work proper and no transition.

Kind regards

License ?

Is there a license associated with this project?

MIT, BSD, etc ?

Error

getting this error
TypeError: paddingLeft is undefined

paddingLeft = +paddingLeft.substring(0, paddingLeft.length -2);

Scroll

When the menu list is very long, it does not show a scroll. As I can show?

problem with the 'width' option

Hi,
I'm trying to use your plugin (which is great), but I'm facing a problem when I try to set the width.

See this fiddle : http://jsfiddle.net/rpf575qt/3/

with the default width (250), no problem. but when I set the width to 300, at the initialisation the "left" css property is set to -30000px, so my handle button is out of the viewport.

EDIT :
using parseInt() at line 19 and 95 as below fix the problem :

sidePosition = (parseInt(setting.width) + parseInt(paddingLeft) + parseInt(paddingRight)) + "px";

Thanks anyway

Custom close button

I have custom close button close button, but somehow I can't manage to close it
I'm new with jquery. I have an close icon and I did try

$('#slider').slideReveal("hide"{
trigger: $("#cart-close")
});
But it's not working, please tell me what am I doing wrong

Unbind Slidereveal

Is there a way we can unbind the slidereveal (for example, upon window resize, bind slide reveal for smller screens and unbind it beyond certain screen sizes) ?

Installation through Bower

I am using Bower as my package manager, but I get an error when trying to install slideReveal. I can install any other package.

bower install slidereveal

and the result:

bower ENOTFOUND Request to https://bower.herokuapp.com/packages/slidereveal failed: getaddrinfo ENOTFOUND

Scrollbars not accurate

I noticed while using your plugin that the scrollbars for the body element stay to the right of the slideReveal panel (position: right) when they should be on the left side. Scrolling in the panel area scrolls the body as well, which seems unintended.

This could most likely be solved by allow specification of which element is to be "pushed" (eg, not the body element in this case) like the ScotchPanels plugin does.

Scotch does not allow for video backgrounds in the containing element, yet yours misbehaves on scrolling and does not allow me to specify the proper element to be pushed out of view when the panel opens.

I am hoping to modify one of your plugins to make a solution that is error-free in this case. Just hoping you could point me in the right direction.

Bugs on iOS

Hi,
I have the problem on iOS that the sidebar is opened on start and I need two clicks on the trigger button before the sidebar is moving.

Cheers

Safari (9x)

The menu is always opening when visiting/refreshing a page in Safari. On all other browsers (Chrome, FireFox, Opera and even IE the menu remains closed). The first click on the chevron has no effect on the panel, but chevron rotates...a second click closes the menu. You can see it easily here: http://nnattawat.github.io/slideReveal/
:-)

Thanks Jens

Not Responsive

It seems that it's not responsive enough to handle small screens, it also doesn't have scrolling when sidebar is over flowing the screen.

Scroll issues on iOS

When the content of the slide menu is long there are some scrolling issues. It will begin to scroll through the content, but it seems at some point it stops and begins to scroll the main content of the page.

Show function trigger undefined

The callback show function is supposed to be passed two parameters.

The first parameter side-panel object is fine, but the trigger is undefined.

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.