function moveSlide( slideIndex ) {
    var branches = BS.elements.branches;
    var sign = slideIndex > BS.slideIndex ? '-' : '';
    var index = Array.prototype.indexOf.call( branches, branches[slideIndex] );
    var transForm = 'translate(' + sign + 100 * index + '%, 0)';
    var prefixedTransitionDuration = BS.getVendorPrefix( 'TransitionDuration' );
    var prefixedTransform = BS.getVendorPrefix( 'Transform' );
    var nextSlideStyle = branches[slideIndex].style;

    if ( slideIndex > BS.slideIndex ) {
      nextSlideStyle[prefixedTransitionDuration] = '0s';
      nextSlideStyle[prefixedTransform] =
        'translate(-' + 100 * ( index - 1 ) + '%, 0)';
    }

    nextSlideStyle[prefixedTransitionDuration] = BS.slideDuration + 's';
    branches[BS.slideIndex].style[prefixedTransform] = transForm;
    nextSlideStyle[prefixedTransform] = transForm;

    BS.slideIndex = slideIndex;
    BS.setSliderHeight();
  }
/**
   * Move the current / next slide using prefixed CSS properties.
   * @param {number} slideIndex - zero based index of the slide.
   */
Move the current / next slide using prefixed CSS properties.
@param {number} slideIndex - zero based index of the slide.
Move the current / next slide using prefixed CSS properties . @param { number } slideIndex - zero based index of the slide .
function moveSlide( slideIndex ) {
    var branches = BS.elements.branches;
    var sign = slideIndex > BS.slideIndex ? '-' : '';
    var index = Array.prototype.indexOf.call( branches, branches[slideIndex] );
    var transForm = 'translate(' + sign + 100 * index + '%, 0)';
    var prefixedTransitionDuration = BS.getVendorPrefix( 'TransitionDuration' );
    var prefixedTransform = BS.getVendorPrefix( 'Transform' );
    var nextSlideStyle = branches[slideIndex].style;
    if ( slideIndex > BS.slideIndex ) {
      nextSlideStyle[prefixedTransitionDuration] = '0s';
      nextSlideStyle[prefixedTransform] =
        'translate(-' + 100 * ( index - 1 ) + '%, 0)';
    }
    nextSlideStyle[prefixedTransitionDuration] = BS.slideDuration + 's';
    branches[BS.slideIndex].style[prefixedTransform] = transForm;
    nextSlideStyle[prefixedTransform] = transForm;
    BS.slideIndex = slideIndex;
    BS.setSliderHeight();
  }
function moveSlide ( slideIndex ) { var branches = BS . elements . branches ; var sign = slideIndex > BS . slideIndex ? '-' : '' ; var index = Array . prototype . indexOf . call ( branches , branches [ slideIndex ] ) ; var transForm = 'translate(' + sign + 100 * index + '%, 0)' ; var prefixedTransitionDuration = BS . getVendorPrefix ( 'TransitionDuration' ) ; var prefixedTransform = BS . getVendorPrefix ( 'Transform' ) ; var nextSlideStyle = branches [ slideIndex ] . style ; if ( slideIndex > BS . slideIndex ) { nextSlideStyle [ prefixedTransitionDuration ] = '0s' ; nextSlideStyle [ prefixedTransform ] = 'translate(-' + 100 * ( index - 1 ) + '%, 0)' ; } nextSlideStyle [ prefixedTransitionDuration ] = BS . slideDuration + 's' ; branches [ BS . slideIndex ] . style [ prefixedTransform ] = transForm ; nextSlideStyle [ prefixedTransform ] = transForm ; BS . slideIndex = slideIndex ; BS . setSliderHeight ( ) ; }
Move the current / next slide using prefixed CSS properties.
Move the current / next slide using prefixed CSS properties .