[jQuery] jScrollPane and fadeIn
Hey guys! I've searched everywhere before posting here, but I've
found nothing.
Anyway, I have a page that fades in a DIV on page load using fadeIn.
I tried to apply the jScrollPane effect to the div, but it seems that
the fadeIn effect breaks it.
Is there a way around this? Below is the way I have applied the code:
<script type="text/javascript">
$(function()
{
$('.scroll-pane').jScrollPane();
});
</script>
<script type="text/javascript">
window.onload = function()
{
$("div#mainContent").fadeIn(2000);
}
</script>
I'm a totaly newb, so I'm not too sure if I am calling the functions
incorrectly. I have tried the opposite order as well. A demo of the
page can be found at http://graham-russell.co.uk/misc/newSite/
I am running jQuery 1.2.6 minified.
Many thanks guys!
-Ritchie.