1.1.0 • Published 8 years ago

hidescrolljs v1.1.0

Weekly downloads
4
License
-
Repository
github
Last release
8 years ago

Hidescroll.js is jQuery plugin for hiding navbar on scrolling down and showing on scrolling up. It's all for the better user reading experience.

##Setup

###1. Include jQuery jQuery is the only dependency. Make sure to include it.

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

###2. Include Hidescroll.js

<script src="jquery.hidescroll.js"></script>

###3. Make necessary markup Link to slider stylesheet inside document head.

<link rel="stylesheet" href="css/style.css">

Make necessary markup for slider.

<div class="navbar"></div>

###4. Init Init our slider on default options ...

<script>
	$('.navbar').hidescroll();
</script>

… or with custom options

<script>
	$('.navbar').hidescroll({
		offset: $('#header').height(),
	});
</script>

##Options Here is list of all available

OptionDefaultTypeDescription
offset0intHow far scroll distance (from top) navbar sticking has taken place
interval250intHow often (in ms) check current scroll position and direction
stickClassis-stickstringClass used on navbar stick
visibleClassis-visiblestringClass used on navbar stick visible
hiddenClassis-hiddenstringClass used on navbar stick hidden

##Changelog

1.0.1 / 29.09.2014

  • Changed state class names

1.0.0 / 10.08.2014

  • Plugin release

##License Glide is Copyright © 2013 Jędrzej Chałubek and is licensed under the terms of the MIT License.

1.1.0

8 years ago