Question

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);
                    });
Was it helpful?

Solution

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);
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top