by Torniquet » Sun Mar 07, 2010 4:36 pm
ok a quick alteration. i will make the change to the main tutorial after i have given a breif explanation here lol.
i have removed the queuing from the animation, so where as before it jumped up and down if u scrolled in and out to quick, it will now interupt the animation which is making it go up, and force it back down into place again.
you can see if you visit the test page again.
new final jQuery code.
$(document).ready(function(){
$('#bar').animate({bottom:'-40',opacity: 0.5},{},500,function(){});
$('#bar').mouseenter(function(){
$('#bar').animate({bottom:'0', opacity: 1},{queue:false,duration:800});
});
$('#bar').mouseleave(function(){
$('#bar').animate({bottom:'-40', opacity: 0.5},{queue:false,duration:800});
});
});

R.i.P
Paul Grey (#2 / "pig")
08/04/72 - 24/05/10(sic) to the bitter end!