Search code examples
jqueryoverlayshadowboxcaptioneasyslider

Jquery EasySlider with Captions - Last slide not animating


I've created a slideshow using EasySlider and I've added a hover/animate function to add a caption overlay that is able to launch Shadowbox.

My problem is that the last slide seems to make my caption sequence null. The function will run while the slide is in transition, but when it finishes the caption returns to its original position. This only happens on the last slide of the sequence.

Can anyone tell me how I might alter my caption function or EasySlider to get this to work?

http://zachinscho.com/save/kreber_test/V2/

Thanks


Solution

  • Zach, I honestly can't find an error with your code but if you take off the individual listeners and apply a universal listener for all slides, it fixes your problem

    $('#easysliderMain li').hover(function(){
         $(".cover", this).stop().animate({top:'250px'},{queue:false,duration:160});
    }, function() {
         $(".cover", this).stop().animate({top:'280px'},{queue:false,duration:160});
    });