Automattic / antiscroll

OS X Lion style cross-browser native scrolling on the web that gets out of the way.
1.07k stars 162 forks source link

Custom scrollbars are visible on page load #7

Closed TooTallNate closed 12 years ago

TooTallNate commented 12 years ago

When .anitscroll() is first called, the scrollbars are visible on the <div> until you hover the mouse over the div and back out.

rauchg commented 12 years ago

Intended behavior. We can maybe make it an option… the idea is showing the user "look, you can scroll this element". It goes away after 3 seconds

TooTallNate commented 12 years ago

Ahhh, confirmed. 3 seconds. Agreed it should be configurable though; the duration as well.

$('div').antiscroll({ initialDisplay: 3000 }); // 3 seconds
$('div').antiscroll({ initialDisplay: false }); // don't display
rauchg commented 12 years ago

Agreed 100%.