diff --git a/README.md b/README.md
index 2535baa..40517fb 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ Make items sticky as you scroll, to a point. ([See Demo](http://davist11.github.
<div class="content">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
-
+
<div class="aside stickem">
I'm gonna be sticky!
</div>
@@ -52,6 +52,9 @@ Do you already have a fixed horizontal header on the page? Offset stick 'em by t
**start: 0**
If your sticky item isn't at the top of the container, tell it where it should start being sticky.
+**end: 0**
+If your sticky item shouldn't stick exactly at the end of the container, tell it where it should end being sticky.
+
**onStick: null**
You can create a callback function that fires when an item gets "stuck". The item gets passed back.
@@ -65,4 +68,4 @@ If you have a bunch of stuff that happens after your page has loaded (e.g. AJAX
var sticky = $('.container').stickem();
sticky.destroy();
-Then you can re-instantiate again if you need to.
\ No newline at end of file
+Then you can re-instantiate again if you need to.
diff --git a/jquery.stickem.js b/jquery.stickem.js
index c56af3c..4929e2e 100644
--- a/jquery.stickem.js
+++ b/jquery.stickem.js
@@ -32,6 +32,7 @@
endStickClass: 'stickit-end',
offset: 0,
start: 0,
+ end: 0,
onStick: null,
onUnstick: null
},
@@ -89,7 +90,7 @@
item.containerInnerHeight = item.$container.height();
item.containerStart = item.$container.offset().top - _self.config.offset + _self.config.start + item.containerInner.padding.top + item.containerInner.border.top;
- item.scrollFinish = item.containerStart - _self.config.start + (item.containerInnerHeight - item.elemHeight);
+ item.scrollFinish = item.containerStart - _self.config.start + (item.containerInnerHeight - item.elemHeight) + _self.config.end;
//If the element is smaller than the container
if(item.containerInnerHeight > item.elemHeight) {