I have to get some effects when content is changing. Here is my jquery-code:
function contentHide( parentElement, callback )
{
parentElement.animate({
"height" : "hide", "opacity" : 0.0
}, "slow", "linear", callback);
}
function contentShow( parentElement )
{
parentElement.animate({
"height" : "show", "opacity" : 0.7
}, "slow", "linear");
}
And when content is changing I have a big lags. At first seconds on the page everything is ok.