scroll
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "scroll", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A function that animates an element’s scrollTop value.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,4 +16,4 @@ # scroll | ||
target (number): the desired scrollTop position, | ||
options (object): { duration, ease }, | ||
callback (function): fn(error, position) | ||
[options (object): { duration, ease },] | ||
[callback (function): fn(error, position)] | ||
) | ||
@@ -30,3 +30,3 @@ ``` | ||
scroll.top(element, 200, { duration: 1000 }, function(error, position) {}) | ||
scroll.left(element, 200, { ease: 'inBounce' }, function(error, position) {}) | ||
scroll.left(element, -200, { ease: 'inBounce' }) | ||
``` | ||
@@ -33,0 +33,0 @@ |
4513