Skip to content

Commit

Permalink
Adding to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Were committed Jun 15, 2017
1 parent 4e6a0b8 commit 665fa32
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,7 @@ var thread = {
if (!entry) return;

var frame = 0;
$('html, body').animate({
scrollTop: entry.offset().top - 50,
}, {
duration: 400,
step: function(now, fx) {
// Recalc end target every few frames
if (++frame % 6 == 0)
fx.end = entry.offset().top - 50;
}
});
},
... snip ...
```
Modify it to:
Expand All @@ -67,16 +57,5 @@ var thread = {

if (!entry) return;

var frame = 0;
$('html, body').animate({
scrollTop: entry.offset().top - 50,
}, {
duration: 400,
step: function(now, fx) {
// Recalc end target every few frames
if (++frame % 6 == 0)
fx.end = entry.offset().top - 50;
}
});
},
... snip ...
```

0 comments on commit 665fa32

Please sign in to comment.