Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCrisostomo committed Jun 22, 2014
1 parent f6b766b commit aeecaa0
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions Docs/Interface/Scroller.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Scroller Method: constructor

### Arguments

1. element - (*element*) The element to scroll.
1. element - (*mixed*) The element to scroll, or it's id.
2. options - (*object*, optional) An object for the Scroller instance's options.

#### Options :
Expand All @@ -47,15 +47,25 @@ Scroller Method: constructor

#### Examples

var myScroller = new Scroller(window, {
area: Math.round(window.getWidth() / 5)
new Element('div', {
styles: {
width: 600,
height: 400
}
}).inject(new Element('div', {
id: 'myScroll',
styles: {
width: 300,
height: 200,
overflow: 'scroll'
}
}).inject($(document.body)))


var myScroller = new Scroller('myScroll', {
area: Math.round(window.getWidth() / 10)
});

(function(){
this.stop();
this.start();
}).periodical(1000, myScroller);

myScroller.start();


Scroller Method: start {#Scroller:start}
Expand Down

0 comments on commit aeecaa0

Please sign in to comment.