Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript AnythingSlider

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #45099
    davieghost
    Member

    Hey all!

    I am trying to make the panel navigation fadeOut at the end of my slider, and I am hitting a wall, I have the fadeOut set, but it comes at the beginning.

    base.slideControls = function(toggle){
    var dir = (toggle) ? ‘fadeOut’ : ‘fadeOut’,
    t1 = (toggle) ? 0 : o.animationTime,
    t2 = (toggle) ? o.animationTime : 0,
    op = (toggle) ? 1 : 0,
    sign = (toggle) ? 0 : 1; // 0 = visible, 1 = hidden
    if (o.toggleControls) {
    base.$controls.stop(true,true).delay(t1)[dir](o.animationTime/1).delay(t2);
    }
    if (o.buildArrows && o.toggleArrows) {
    if (!base.hovered && base.playing) { sign = 1; op = 0; } // don’t animate arrows during slideshow
    base.$forward.stop(true,true).delay(t1).animate({ right: base.arrowRight + (sign * base.arrowWidth), opacity: op }, o.animationTime/2);
    base.$back.stop(true,true).delay(t1).animate({ left: base.arrowLeft + (sign * base.arrowWidth), opacity: op }, o.animationTime/2);
    }
    };
    this is what I have so far, and a bonus question… is there a way to bind the slidecontrols to each pane as apposed to having them sit outside of the slide show?

    Thanks so much!

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.