Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10312

    I have some tall slides in the content slider, please could you tell me where in aviapoly.js I could add this line:

    jQuery(‘body,html’).animate({scrollTop: 0}, 800); return false;

    to make it slide to the top of the slide as well as go to the next slide…

    Thanks very much!

    #67619

    Any help with this, yet?

    #67620

    Hi,

    The content slider code can be found in js/avia.js (aviapoly is only used for the responsive image slider). Search for following code line to find the function:

    $.fn.avia_sc_slider = function(variables, callback)

    I’d add the code somewhere after following line:

    container.stop().animate({height: nextSlideHeight}, options.transitionDuration, options.transitionEasing);

    #67621

    Unfortunately this scrolls to the top of the page, not the top of the slide.

    #67622

    I think you just need to adjust the scrolltop position (replace 0 with any other value). If you want to use the slideshow anywhere on your webpage (eg at the end of the content) you need to find a custom solution because bitnap will always scroll to a predefined position.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Scroll to top in AviaPoly.js’ is closed to new replies.