File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 1
-
2
1
# Antiscroll: cross-browser native OSX Lion scrollbars
3
2
4
3
Antiscroll fixes a fundamental problem JavaScript UI developers commonly face:
@@ -26,6 +25,30 @@ the scrollbars popularized by OS X Lion that retains native properties.
26
25
Please click [ here] ( http://learnboost.github.com/antiscroll/ ) to see it in
27
26
action.
28
27
28
+ ## Installation
29
+
30
+ 1 . Wrap scrollable content with the class ``` antiscroll-inner ```
31
+ 1 . Wrap the above with the class ``` antiscroll-wrap ```
32
+ 1 . Include the following Javascript
33
+
34
+ ``` javascript
35
+ $ (function () {
36
+ $ (' .antiscroll-wrap' ).antiscroll ();
37
+ });
38
+ ```
39
+
40
+ ### Configuration
41
+
42
+ You may remove automatic scrollbar hiding by passing in a key-value to the ``` antiscroll() ``` function like so:
43
+
44
+ ``` javascript
45
+ $ (function () {
46
+ $ (' .antiscroll-wrap' ).antiscroll ({
47
+ autoHide: false
48
+ });
49
+ });
50
+ ```
51
+
29
52
## What does it look like?
30
53
31
54
** Firefox 8 ` overflow: scroll ` and antiscroll on OS X**
You can’t perform that action at this time.
0 commit comments