English 中文(简体)
Animate width留守
原标题:Animate width left to right
  • 时间:2009-10-24 20:13:28
  •  标签:

我正试图找到一条途径,用 j子把羊从左边缩小到右边。

我先点击:

  • slide in from left to right
  • then have it continue to the right off my div, like it just keeps moving off the page, comes in and click again comes off. I have the toggle function in and working properly, but I am not sure how to make it keep moving off the page.

任何想法?

最佳回答

您需要确定差额财产。 但是,如果有任何因素,你也想绝对立场。

问题回答

缩小了它离开的权利(如你知道如何离开),但同时增加了左上风格或左边。

类似:

var distance = $("div").css("width");

$("div").animate({
"width": "0",
"marginLeft": distance
});




相关问题
热门标签