3
我在Jquery中使用.animate函数。我有一个使用marginLeft滑过的div,但我也需要它淡入,但我需要它比marginLeft效果慢。使用.animate,我似乎只能应用一个速度参数。jquery .animate不同的速度
<script type="text/javascript">
$(document).ready(function(){
$(".topFrameAnim").css("opacity", "0.0");
$(".topFrameAnim").animate({
marginLeft: "0",
}, 500);
$(".topFrameAnim").animate({
opacity: "1",
}, 1000); // Need this effect to be applied at the same time, at a different speed.
});
</script>
谢谢你,那就是我一直在寻找的! – Jared 2009-12-14 16:58:51