【发布时间】:2010-12-18 16:17:16
【问题描述】:
我想知道如何使我的 jQuery 脚本中的图像更改更流畅。
我还有一个 animate() 链,我可以将“src”更改附加到其中吗?遗憾的是我不能使用图像作为 CSS 背景...
这里有一个小样本...
function growBigger(element) {
$(element)
.find(".inside")
.animate({ width: curWidth, height: curHeight, marginTop:"0px" })
.end()
.find(".label")
.animate({ fontSize:curTitleSize })
.end()
$(element + " .inside .thumbnail").attr("src","images/big_" + curPanel + ".jpg")
}
【问题讨论】:
标签: jquery image animation jquery-animate