Walrus
Walrus

Reputation: 20484

JQuery slideDown() not pushing other content properly

The following code slides down some content. It should push the rest of the page down to, and it does but it does not animate it. It statically jumps at the end of the animation.

$(window).load(function(){
                        $('.panel.autoc').effect('shake', {times:5}, 80);
                        $('.errors').slideDown(800);
                    });

Upvotes: 0

Views: 415

Answers (1)

ShankarSangoli
ShankarSangoli

Reputation: 69915

Since you are animating right after the page load you might see such behavior in most of the browsers. Try to give some delay after page loads and then slide it. Try this

$(window).load(function(){
                    setTimeout(function(){
                        $('.panel.autoc').effect('shake', {times:5}, 80);
                        $('.errors').slideDown(800);
                    }, 200);
});

Upvotes: 1

Related Questions