Skip to content
A simple jQuery Plugin to fix whatever element to the top of the browser.
HTML JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js
README.md
index.html

README.md

Stickthis

Stickthis. A simple jQuery Plugin to fix whatever element to the top of the browser. No pretentions, just for fun.

Demo

Please, take this little demo as it is, a demo where I pretend to show to you the power of this plugin, but consider your own target before copy/paste the code.

Customizable

• You could change the name of the class that is going to be added to the element ('sticked' by default). Remember then to apply your styles to this new class.

• Customize or change the CSS files.

Usage

• Download or fork the repository.

• Include jQuery and the Javascript file minify or not in your HTML.

• Initialize the plugin

$(".your-element-selector").stickthis();

// some options are customizable $(".stickthis").stickthis({ classname : "sticked", // asgin the class you like the most complete : function(){ // callback console.log('callback CUSTOM'); } });

Credits

• Feel free to download, modify, break, use or destroy this plugin.

You can’t perform that action at this time.