-1

I have a simple JQuery Slider to rotate through tabs to display different blog story headlines and pictures. The problem is that if you're viewing the page anywhere beneath the slider, each time the slider rotates, it automatically moves the page so that you're looking at the slider again.

This does not happen if you're above the blog slider.

Please help!

My code:

$(document).ready(function(){
    $("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 8000, false);
    $("#featured").hover(  
        function() {  
            $("#featured").tabs("rotate",0,false);  
        },  
        function() {  
            $("#featured").tabs("rotate",8000,false);  
        }  
    );  
CAbbott
  • 8,078
  • 4
  • 31
  • 38

1 Answers1

0

A great answer is at: JQuery UI Tabs Causing Screen to "Jump"

As Mike Petrovich explains, there is a point in the rotating tab animation where both the outgoing and incoming div are set to display:none. This causes the vertical height of the page to shrink, which makes the display 'jump' upwards.

Community
  • 1
  • 1