Skip to content

Simple jQuery plugin to stick a div at the top of the viewport, hidding while scrolling down, showing while scrolling down.

License

Notifications You must be signed in to change notification settings

xavier-bs/stickhidable.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stickhidable

Simple jQuery plugin to stick a div at the top of the viewport, hidding while scrolling down, showing while scrolling up.

Usage

Insert the js file after jQuery:

<script type="text/javascript" src="/path/to/stickhidable.min.js"></script>

Just apply the plugin to the div to be sticked:

( function( $ ) {
	
	$( 'myDivToStick' ).stickhidable();

})( jQuery );

Very simple.

demo


GNU GENERAL PUBLIC LICENSE Version 3

Xavier Birnie-Scott murviel-info.com

About

Simple jQuery plugin to stick a div at the top of the viewport, hidding while scrolling down, showing while scrolling down.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published