using jQuery .animate to animate a div from right to left?

后端 未结 5 818
太阳男子
太阳男子 2020-12-04 19:23

I have a div absolutely positioned at top: 0px and right: 0px, and I would like to use jquery\'s .animate() to animate it from it\'s c

5条回答
  •  一向
    一向 (楼主)
    2020-12-04 20:00

    so the .animate method works only if you have given a position attribute to an element, if not it didn't move?

    for example i've seen that if i declare the div but i declare nothing in the css, it does not assume his default position and it does not move it into the page, even if i declare property margin: x w y z;

提交回复
热议问题