Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
davist11 committed Sep 25, 2012
1 parent 6be7905 commit e55f959
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,13 @@ Class added to the sticky item once it has reached the end of the container
Do you already have a fixed horizontal header on the page? Offset stick 'em by that many pixels.

**start: 0**<br>
If your sticky item isn't at the top of the container, tell it where it should start being sticky.
If your sticky item isn't at the top of the container, tell it where it should start being sticky.

### Destroying

If you have a bunch of stuff that happens after your page has loaded (e.g. AJAX requests) that changes the height of your containers and page, and you need to "destroy" stick 'em, do it like this:

<pre>var sticky = $('.container').stickem();
sticky.destroy();</pre>

Then you can re-instantiate again if you need to.

0 comments on commit e55f959

Please sign in to comment.