1
我想在jQuery動畫中爲div設置大小。我寫了這段代碼:animate div越來越小jquery中的立即數
$(this).animate({
opacity: 0,
top: "-=100",
width: "38px",
height: "32px"
}, 1500, function() {
$this.remove()
})
有了這段代碼,大的div不會變小。我如何編輯這段代碼以便首先製作更大的div,然後立即變小?如果可以在CSS3中完成這項工作,請幫助在CSS3中完成。
謝謝。
這可能幫助:https://developer.mozilla.org/en/docs/Web/CSS/@keyframes – techfoobar
@techfoobar非常感謝您的幫助 – Kalim