1
1
/*!
2
- * Smooth Scroll - v1.4.10 - 2013-02-20
2
+ * Smooth Scroll - v1.4.10 - 2013-03-02
3
3
* https://github.com/kswedberg/jquery-smooth-scroll
4
4
* Copyright (c) 2013 Karl Swedberg
5
- * Licensed MIT (/blob/master/LICENSE-MIT)
5
+ * Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll /blob/master/LICENSE-MIT)
6
6
*/
7
7
8
8
( function ( $ ) {
@@ -12,15 +12,29 @@ var version = '1.4.10',
12
12
exclude : [ ] ,
13
13
excludeWithin :[ ] ,
14
14
offset : 0 ,
15
- direction : 'top' , // one of 'top' or 'left'
16
- scrollElement : null , // jQuery set of elements you wish to scroll (for $.smoothScroll).
17
- // if null (default), $('html, body').firstScrollable() is used.
18
- scrollTarget : null , // only use if you want to override default behavior
19
- beforeScroll : function ( ) { } , // fn(opts) function to be called before scrolling occurs. "this" is the element(s) being scrolled
20
- afterScroll : function ( ) { } , // fn(opts) function to be called after scrolling occurs. "this" is the triggering element
15
+
16
+ // one of 'top' or 'left'
17
+ direction : 'top' ,
18
+
19
+ // jQuery set of elements you wish to scroll (for $.smoothScroll).
20
+ // if null (default), $('html, body').firstScrollable() is used.
21
+ scrollElement : null ,
22
+
23
+ // only use if you want to override default behavior
24
+ scrollTarget : null ,
25
+
26
+ // fn(opts) function to be called before scrolling occurs.
27
+ // `this` is the element(s) being scrolled
28
+ beforeScroll : function ( ) { } ,
29
+
30
+ // fn(opts) function to be called after scrolling occurs.
31
+ // `this` is the triggering element
32
+ afterScroll : function ( ) { } ,
21
33
easing : 'swing' ,
22
34
speed : 400 ,
23
- autoCoefficent : 2 // coefficient for "auto" speed
35
+
36
+ // coefficient for "auto" speed
37
+ autoCoefficent : 2
24
38
} ,
25
39
26
40
getScrollable = function ( opts ) {
0 commit comments