views:

38

answers:

0

Hi. I'm trying to get the text to slideUp on the first slide like it does on the rest of the slides. I've acheived this on the bottom slider, but not the top slider which uses the fade transition. Can anyone help me out? Here are the codes:

    if( this.settings.direction == 'opacity') {
  var text = '.lof-main-item-desc';
        this.wrapper.addClass( 'lof-opacity' );
        $(this.slides).css({'opacity':0, 'display':'none'}).eq(this.currentNo).css({'opacity':1, 'display':'block'});
    } else { 
  var text = '.lof-main-item-desc';
        this.wrapper.css({'left':'-'+this.currentNo*this.maxSize+'px', 'width':( this.maxWidth ) * this.slides.length } );
        $(this.wrapper).find(text).show();
    }


fxStart:function( index, obj, currentObj ){
            if( this.settings.direction == 'opacity' ) {
            var text = '.lof-main-item-desc';
      $(text).slideUp(200);
                $(this.slides).stop().animate({opacity:0}, {
                duration: this.settings.duration, 
                easing:this.settings.easing,
                complete:function(){
        $(this).css({'display':'none'});
        } 
      });
                $(this.slides).eq(index).stop().animate( {opacity:1}, {
                duration: this.settings.duration, 
                easing:this.settings.easing,
                step:function(){
        $(this).css({'display':'block'})
        },
      complete:function(){
          $(this).find(text).slideDown(200);
        }
      });
            }else {
            var text = '.lof-main-item-desc';
      $(this.wrapper).find(text).slideUp(200); 
                this.wrapper.stop().animate( obj, {
        duration: this.settings.duration, 
        easing:this.settings.easing, 
        complete:function() {
          $(this).find(text).slideDown(200); } });
            }
        return this;
    }

Appreciate if anyone could help out. Thanks a million in advance!

Here is an link to the demo site:

http://www.matthewruddy.com/premiumslider

Thanks again. Matthew.