问题描述:

$("#left_image1").delay('1000').animate({width:'toggle'}, 1000);

This causes the element to collapse in such a way that it appears to be moving off the LEFT side of the screen. How can I reverse the effect so that the element appears to be moving off the right side of the screen?

网友答案:

Its not quite so simple. The reason it appears to be going to the left is because you element is left aligned. If it was right aligned it would appear to go to the right. You could fix this in a variety of ways, but since you didn't post your html/css I can't give a specific answer. One way you could go about this is by floating your html element to the right, or by absolutely positioning the element to the right of its container element.

相关阅读:
Top