【问题标题】:jQuery smooth image changejQuery平滑图像变化
【发布时间】: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


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2018-10-23
      • 1970-01-01
      • 2012-04-15
      • 2012-08-25
      • 1970-01-01
      • 2014-11-18
      • 2012-02-03
      • 2020-06-11
      • 1970-01-01
      相关资源
      最近更新 更多