Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #117 from Crisfole/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Anthony Garand committed Jul 22, 2014
2 parents b2a32e9 + 43516ec commit 2126fe2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,16 @@ This is how it works:
- `sticky(options)`: Initializer. `options` is optional.
- `sticky('update')`: Recalculates the element's position.

## Events

- `sticky-start`: When the element becomes sticky.
- `sticky-end`: When the element returns to its original location

To subscribe to events use jquery:

```html
<script>
$('#sticker').on('sticky-start', function() { console.log("Started"); });
$('#sticker').on('sticky-end', function() { console.log("Ended"); });
</script>
```

0 comments on commit 2126fe2

Please sign in to comment.