Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Animated Background Q. Re: Animated Background Q.

#71223
islam4hak
Member

ok im not sure if i get what you want
if there is an example it would be great
but here is a few things you need to know
there is no support for z-index transformation in the jquery
so if you have to make this effect you will do something near to this

Code:
$(‘#black’).animate({

height: “0px”,

}, 300,function(){
$(‘#usersblock’).css(‘z-index’,’5′);
$(‘#black’).css(‘z-index’,’1′);
});

in this case i change the z-index in the callback function after it’s complete the animation

but even though there is the fade animate that you can use it , it make the opacity value gos from 100 to 0 or whatever you want in time

Code:
$(‘#userblock’).fadeOut(‘slow’);

or

Code:
$(‘#userblock’).fadeTo(‘slow’, 0);

and about the animate tutorials i found this very helpful
i hope you do
and if there is any questions
please let me know !!